A minimalist bloatless Chrome extension that instantly closes tabs when users try to visit blocked websites.
- Follow standard steps for installing chrome extensions LeanSiteBlocker
- Clone the repository or download latest release.
- Go to
chrome://extensions
- Enable Developer mode
- Click “Load unpacked”
- Select the folder containing this project
- Click the extension icon in your browser toolbar
- Type a domain like
youtube.com
orfacebook.com
- Click Add
- Try to visit the site — it will instantly close
To remove a domain, click Remove next to it in the popup.
- The extension listens to tab updates using
chrome.tabs.onUpdated
- If the URL matches a blocked domain, the tab is automatically closed
- All data is stored locally in
chrome.storage.local