I find the Stayfocusd (sic) Google Chrome extension quite useful for a friendly "you should be working" kick in the pants: https://chrome.google.com/extensions/detail/laankejkbhbdhmip...
Sure you can overcome it using various ways, but for me the fact that it gets in the way is enough to prompt me to go back to what I should be doing (i.e. something productive)