If I have a moment of boredom, I'll often just open up another tab, and start "checking things". This could be stacker.news, checking the weather forecast, news, etc. Any number of things. This habit really gets in the way of focus.
I'm really trying to work on this. Avoiding digital distraction is a big deal for me, and I think lots of people have the same problem.
So I've been looking for an extension that does this. And writing up an extension seems like a lot of work - I don't really do javascript, etc. Then I heard the term "vibe coding" bounced about. I believe it actually means just writing crappy code, using AI. And I thought it'd try it.
Anyway, one prompt later (I thought it would take MUCH more back and forth), I came up with an extension that seems to do what I want. When I open up a new tab, the extension overlays some text with a countdown timer, saying "please wait 30 seconds".
Honestly, I'm very impressed. It took less than 5 minutes to do the prompt, and setup the extension.
I'll have to reconsider the way I open tabs now - when I'm mid-research, I'll do a search, and open up 5 or so tabs from the search results, and then go through them. I'll have to change that way of doing things (or modify the app) but my first impression is - it's amazing.
position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); color: white; display: flex; justify-content: center; align-items: center; flex-direction: column; font-size: 2em; z-index: 9999;
; document.documentElement.appendChild(overlay);<div>Please wait ${seconds} seconds...</div> <div>(This is to prevent distraction)</div>
; } 4. background.js (handles navigation) javascript Copy code