luke b

project detail

offscreen

a chrome extension that blocks distracting sites, counts how many times you tried to visit, and gives you 5 seconds to reconsider before kicking you off.

apr 2026 - presentjavascript, manifest v3, chrome storage api, html, csslivegithub

what it is

a manifest v3 chrome extension that intercepts navigation to a blocklist of sites. when you try to visit one, it shows you a 5-second countdown and a running tally of how many times you've tried today — then redirects you away when the timer hits zero.

what it had to do

block reliably without slowing everything else down. the count had to persist across sessions so you can actually see the pattern. the 5-second window was intentional — long enough to feel the friction, not long enough to let muscle memory win.

what i built

a declarative net request ruleset for the block logic, chrome.storage.local for persisting attempt counts, a minimal intercept page with the countdown and the daily number, and a popup for managing which sites are on the list.

result

the count going up is more useful than the block itself. seeing that you've tried to open twitter 14 times in a morning tells you something without needing an app to explain it.