A small Chromium extension that blocks user-defined pages for a chosen amount of time. When a blocked page is opened during an active focus session, the tab redirects to a local Focus page.
- Open
chrome://extensionsoredge://extensions. - Enable developer mode.
- Choose
Load unpacked. - Select this folder.
- Click the Focus Gate extension icon.
- Add domains such as
youtube.com,x.com, orreddit.com. - Choose the duration in minutes.
- Start the focus session.
The extension blocks exact domains and their subdomains, so adding youtube.com also blocks www.youtube.com and m.youtube.com.
npm test