Allows you to block websites based on the text that appears on their pages.

Latest Version

Version
1.4.1
Update
April 13, 2024
Size
1.9MiB
Developer
Category
Users
35
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
Bahasa Indonesia
Bahasa Melayu
Deutsch
English
Français
Nederlands
Norsk
Tiếng Việt
Türkçe
Dansk
Español
Hrvatski
Italiano
Magyar
Polski
Română
Slovenský
Suomi
Svenska
čeština
Ελληνικά
Српски
български
русский
українська
עברית
हिन्दी
ไทย
‫العربية
日本語
한국어
See more
Permissions
Storage
Alarms
Downloads
See more

Defense against Distractions Extension

Hi! It's so easy to distract yourself on the internet and to procrastinate. This extension allows you to choose to block the websites based on the keywords you don't want to see appearing.

There are thousands of video games to play, news stories to read, video content to consume and so on. And often times this is what we do when the project deadline or exams are still far away. It's sometimes a bit hard to force yourself into doing what you need to do.

And distractions are everywhere! Even if you use StayFocusd or Cold Turkey or FocusMe to block some websites by their URLs, you can't block everything. For example even with ChatGPT you could talk about the news or video games if you really don't feel like studying/doing some work.

With this extension, you can block the websites based on words and phrases on their text.

Extension is open sourced:
https://github.com/molodchyk/Defense_against_Distractions.

Changelog

Version 1.1:

-added export/import functionality -added missing translations -bug fix: ChatGPT's stream of text is now properly detected

Version 1.2:

-websites from multiple groups can be applied to a single URL -the page closes automatically after being blocked, timers were removed

Version 1.3:

-keywords values can be increased during locked schedules -keywords can be shuffled during locked schedules -bug fix: keywords can be added again

Version 1.4.1:

increased storage for the website groups
improved error handling regarding storage
bug fix: redirection works as intended
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Defense against Distractions", "description": "__MSG_description__", "version": "1.4.1", "default_locale": "en", "permissions": [ "storage", "alarms", "downloads" ], "action": { "default_icon": { "16": "src/img/icons/icon-16.png", "64": "src/img/icons/icon-64.png", "128": "src/img/icons/icon-128.png" } }, "options_page": "src/options.html", "background": { "service_worker": "src/js/background.js" }, "content_scripts": [ { "matches": [""], "js": ["src/js/content.js"] } ], "web_accessible_resources": [ { "resources": ["src/blocked.html", "src/js/blockedScript.js"], "matches": [""] } ], "icons": { "16": "src/img/icons/icon-16.png", "64": "src/img/icons/icon-64.png", "128": "src/img/icons/icon-128.png" }}
Read more