Skip to content

Dead simple domain blocker Chrome extension that won't spy on you

License

Notifications You must be signed in to change notification settings

fearofcode/focus_blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

focus_blocker

This is an extremely simple Chrome extension that lets you block domains in Chrome. While there are many existing Chrome extensions that do this, most or all of them seem to sell your browsing data. This one does not.

How to install

  • Clone this repo: run git clone git@github.com:fearofcode/focus_blocker.git in your terminal or click the green "Code" button and click "Download ZIP". If you downloaded a zip file, extract it to wherever you want the extension to be stored at.
  • Open Chrome Extensions: Type chrome://extensions in your address bar.
  • Enable Developer Mode: Toggle the switch in the top-right corner.
  • Load Unpacked: Click the "Load unpacked" button in the top-left.
  • Select Folder: Choose the folder where the extension files are located.

To access the UI, the easiest way to do it is to click the Extensions button in the address bar, select the extension, then click the "S" icon that shows up. There you can add domains and remove any ones you want access to by clicking the "X" button next to the domain name.

Status and limitations

This seems to work but it is extremely simple. It does not generate a custom page for blocked pages like other extensions, you just get a generic Chrome error page saying This page has been blocked by an extension. Try disabling your extensions. ERR_BLOCKED_BY_CLIENT.

This code was generated by an LLM since I just wanted something quick. There may be bugs. At least I won't sell your data to an ad company.

About

Dead simple domain blocker Chrome extension that won't spy on you

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published