Lightweight Chrome/Chromium extension that blocks any URL or page you add to its list. Built by NØM4D as a minimal distraction filter.
- Blocks any URL or domain you add in the popup list.
- Each blocked entry can be enabled or disabled individually.
- Global toggle in the popup enables or disables all blocking (on by default).
- Background service worker enforces the policy on every tab update.
- Clone the repo locally.
- Open
chrome://extensionsin Chrome/Chromium and enable Developer mode. - Click Load unpacked and select the
extension/folder in this repository. - Pin the extension if you want quick access to the popup.
- Open the popup and flip Enable page blocker to turn blocking on or off.
- Add URLs or domains in the input (e.g.
example.com,news.ycombinator.com/newest). - Toggle each entry to enable/disable it or remove it entirely.
- The status console confirms when settings are saved or if an error occurs.
extension/plugin/service-worker.jslistens tochrome.tabs.onUpdated.- When the URL matches an enabled entry in
blockedPages, the tab is redirected to the custom blocked page. - Redirects only run when
blockerEnabledistrue; the toggle controls that flag. - Permissions used:
tabsto read and update the current tab URL.storageto persist the toggle state and blocked list.host_permissionson all HTTP/HTTPS URLs so matching can run.
extension/manifest.json: MV3 manifest and permissions.extension/plugin/: popup UI, styles, service worker, and storage helpers.extension/docs/: short product docs (index.htmlin Spanish,index-en.htmlin English).icons/,fonts/,screenshot/: static assets for the extension and docs.
- Blocked pages still load: open the popup and ensure the toggle is on, then refresh the tab.
- After changing code, reload the extension in
chrome://extensionsto refresh the service worker. - Incognito windows require enabling the extension for that mode in the extensions page.
All rights reserved. See LICENSE for usage restrictions.