Go to file
bkf2020 8ce93d0bdc Fix Minor Grammar Mistake 2022-01-03 22:10:54 -08:00
icons Add an icon for the extension 2022-01-02 09:29:43 -08:00
.gitignore basic extension that redirects websites to blocked.html 2021-12-30 22:38:52 -08:00
INSTALL.md Not publishing extension on the chrome web store since publishing requires a $5 fee 2022-01-02 11:30:35 -08:00
LICENSE Initial commit 2021-12-30 07:18:18 +00:00
README.md Fix Minor Grammar Mistake 2022-01-03 22:10:54 -08:00
background.js update copyright year 2022-01-01 23:28:02 -08:00
blocked.html add style to blocked.html; restructure file 2022-01-02 10:37:40 -08:00
icon.jpg Update goals and add icon.jpg file 2022-01-01 23:24:37 -08:00
index.html update copyright year 2022-01-01 23:28:02 -08:00
manifest.json Add description and version number 2022-01-02 11:26:26 -08:00
openOptions.js update copyright year 2022-01-01 23:28:02 -08:00
push.sh make push.sh exectuable 2021-12-30 22:41:02 -08:00
rules.js Create an alarm even if the time the alarm was created is in the past 2022-01-02 10:16:04 -08:00
setrules.html Add clearer instructions to creating rules 2022-01-02 10:56:07 -08:00
style.css Add clearer instructions to creating rules 2022-01-02 10:56:07 -08:00



libre website blocker to help you stay focused. set times you want to prevent access to a website


getting started

  1. install the extension (see INSTALL.md for more details).
  2. right click on the extension to open the options page
    • or click on the extension icon, and press the button to open the options page
  3. set your rules by following the instructions on the options page
  4. set a time to start blocking (scroll down on the options page)
  5. press "start blocking" to start blocking!


This extension DOES NOT collect ANY user data. This extension needs to "read your browsing history" because when you start blocking, it scans your tabs and makes sure any tabs with blocked websites are blocked. The extension prevents you from opening a website by using the declaractiveNetRequest ( https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/ ) API, but this API cannot block websites you have already opened!

The extension DOES NOT send any DATA about you to any server, and all code is available online and is available under the GNU public license, version 3:


Some code was taken from https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/ The license is CC-BY-SA-4.0 and it is allowed to license that under GPL.

The file icon.jpg is under CC0 and is from public domain pictures.

The files in the folder icons are also under CC0, since it is just the original picture resized.


  • Allow users to update rules with UpdateRuleOptions
  • Use storage API to allow users to store rules
  • Add a background task that checks if the time the user set has passed (using alarm api)
  • Allow whitelisting websites?
    • Tried whitelisting a youtube playlist, but that allows the user to browse YouTube
      • Use the tab api?
  • Use a table to display setrules.html
  • When a user presses start, close all blocked websites with the tab api
  • Allow users to press enter to enter a new rule
  • clear dynamic rules when time expires
  • Maybe query tabs instead of using declarativeNetRequest and see which tabs need to be closed/redirected
  • Use a better theme for the extension
  • Clean up the code
    • Use better names for files
    • Use simpler logic if possible
  • Branding: create an icon, description
  • Privacy: tell users why the extension needs certain permissions
  • Show users which websites they block on setrules.html