Disable service workers on all websites (and whitelist desired domains).

Latest Version

Version
0.1.2
Update
August 25, 2024
Size
61.9KiB
Developer
Category
Users
1,000+
Rating
4.5 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
ContextMenus
See more

No Service Worker Extension

No Service Worker is an extension that enables you to disable service workers on all websites.

This addon has two modes to perform the task. The first method is to unregister service workers whenever they are registered. The second method completely nullifies the service worker, so websites cannot initiate the service worker in the first place. The second method is rather aggressive and not recommended as some websites may encounter errors. There is also an option in the popup toolbar to delete the cache (window.caches). This addon has a whitelist feature to exclude certain domains. You can add a domain via the toolbar popup or from the right-click context menu within the page. If you want to turn off the addon, please open the toolbar popup and then click on the toggle button at the top left corner.

If you have a feature request or found a bug to report, please fill the bug report form on the addon's homepage (https://mybrowseraddon.com/no-service-worker.html).
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "version": "0.1.2", "manifest_version": 3, "name": "No Service Worker", "homepage_url": "https://mybrowseraddon.com/no-service-worker.html", "description": "Disable service workers on all websites (and whitelist desired domains).", "background": { "service_worker": "background.js" }, "permissions": [ "storage", "contextMenus" ], "action": { "default_title": "No Service Worker", "default_popup": "data/popup/popup.html", "default_icon": { "16": "data/icons/16.png", "32": "data/icons/32.png", "48": "data/icons/48.png", "64": "data/icons/64.png" } }, "content_scripts": [ { "world": "MAIN", "all_frames": true, "matches": ["*://*/*"], "match_about_blank": true, "run_at": "document_start", "match_origin_as_fallback": true, "js": ["data/content_script/page_context/inject.js"] }, { "world": "ISOLATED", "all_frames": true, "matches": ["*://*/*"], "match_about_blank": true, "run_at": "document_start", "match_origin_as_fallback": true, "js": ["data/content_script/inject.js"] } ], "icons": { "16": "data/icons/16.png", "32": "data/icons/32.png", "48": "data/icons/48.png", "64": "data/icons/64.png", "128": "data/icons/128.png" }}
Read more