Hot answers tagged distraction
Assuming you are unable to sustain self control (which is admittedly contrary to how Stack Exchange is designed to work): Some things I do: Adblock the "hot questions" and "related questions" list frames. This is pretty helpful... Log out of Stack Exchange. Voting, answering, commenting, all are time sucks. Disable email notifications for Stack Exchange. ...
Your focus is not strong enough to keep your mind off distractions causing daydreaming. The solution to this is Mindfulness training. It has scientifically been shown to significantly improve the ability to focus on relevant tasks.
Only top voted, non community-wiki answers of a minimum length are eligible