Distraction Affliction Correction Extension
"I made it a rule that as soon as I finished any task, or got bored with it, I had to power off my computer.
I could turn it back on right away—this wasn’t about trying to use the computer less. The rule was just that the moment I finished (or lost interest in) the thing I was doing, and felt like checking Google News et. al., before I had time to think too much, I’d start the shutdown process. There was no struggle of willpower; I knew that after I hit the button, I could decide to do anything I wanted. But if I decided to look at a website, I’d have to wait through the startup, and once I was done, I’d have to turn it off again before doing anything else"
http://blog.xkcd.com/2011/02/18/distraction-affliction-correction-extensio/