Can relate to that ”moment of struggle”. Thinking about stopping the use of any dev tools that don’t have instant feedback, as having to wait a few seconds for something (currently deploying to google app engine mostly) makes me instantly alt-tab to reddit.
It will block the time waster websites you configure and will block them for you until you've ticked off the list. It's simple but effective for catching that mindless ctrl+t -> reddit reflex.
Trivial inconveniences are huge. For years, I could not get myself to floss. I had no problem with the brushing habit. So then I tried using those floss-picks instead of the reel. Bam, flossing rate went from about once a month to every other day.