A nice JavaScript Toggler
This is a WebExtension for Firefox which allows you to enable or disable JavaScript on any website with one click.
Main Features
- Supports Firefox v60 and higher
- Block or allow JavaScript on individual websites with the click of a button.
- By default JavaScript is allowed on all websites (configurable)
- Has Options dialog to configure default behavior
Notes for developers
- Blocks JavaScript by adding a
Content-Security-Policy: script-src 'none';
header to incoming web requests - Blocks JavaScript on a website and on any included
iframe's
- Programmed in Typescript 3 using namespaces
- Compiles all files down to a single JavaScript file (because
module import
is not fully implemented for extensions — see here and its related ticket 1342012) - Icon uses Photon Design System — Color 'Blue 40 (#45a1ff)' with transparency 0.6
- The icon does not adapt to color changes from dark and light themes — because that's another thing which is not fully implemented by Firefox (browserAction supports light/dark themes, but pageAction does not)
License
The MIT License (MIT) — Denis Brodbeck. Please have a look at the LICENSE.md for more details.