It looks like an algorithm going through doing it automatically (like a little something the guy programmed himself). It's nowhere near as impressive if true, but it's still pretty neat.
This is a legit (former) world Minesweeper record. There's a really disturbing community built around getting this ridiculous at the game. I remember seeing a site that had articles comparing the speed and precision of various mice strictly for use in Minesweeper.