There's also the "noprocrast" setting in your HN profile which won't let you use for more than a certain amount of time.
I haven't implemented either approach. I've found that plugging in my headphones and listening to music or even spoken word gets me into one of those 60-90 minute zones of one-task productivity.