This web extension lets an user decide if JavaScript should be enabled or disabled for a given host or a given tab.
When accessing e.g. google.com and disabling JavaScript, the web extension will block all JavaScript which otherwise would be loaded by google.com (including inline JS and external JS files from other hosts).
Please note that scripts from the blacklisted host will still be loaded if they're being loaded in another host (unless you block that host as well of course).
- Mozilla Firefox (Desktop & Firefox for Android)
- Google Chrome (Desktop)
Disabling and enabling JavaScript should be pretty self-explanatory.
The icons and labels update for a tab accordingly.
NOTE: On Firefox for Android, no icon will be shown but toggling is possible via a menu item.
See the Add-on page for screenshots.
The code is completely open source, you can also use the unpacked version of this web extension if you prefer.
No data of you will ever be logged and the web extension asks only for needed permissions.
Pull requests are welcome!
To install the web extension directly from the source, follow this steps:
- Clone or download the code
- In the project's root folder: Run
npm install
- In the project's root folder: Run
gulp compile
- Add the web extension to your browser
- Mozilla Firefox: Visit
about:debugging
and click onLoad Temporary Add-on
. Load then themanifest.json
file in the project's root folder - Google Chrome: Visit
chrome://extensions/
and click onLoad unpacked
. Choose the project's root folder
- Mozilla Firefox: Visit
- If you simply want to test new branches/custom code without interfering with the installed version of the web extension, check out these browsers:
Make sure you have prepared your device with these instructions.
After following the previous steps, continue like this:
- In the project's root folder: Overwrite the existing
manifest.json
with themanifest-gecko.json
file - Connect your mobile device via USB to your composer
- In the project's root folder: Run
./push-to-mobile.sh
- In Firefox in your mobile device: Access
file:///storage/emulated/0
and select the[email protected]
file
If you want to contribute in any way or simply report bugs, please have a look at the contribution guidelines first.
Thank you!
If you want to support this project, please think about making a small contribution, thank you!
Feature proposals are being added as issues on GitHub.
If you want something to be added, create an issue or upvote an existing one.
- David Pacassi Torrico (Web extension implementation, maintenance, support)
MIT License
Copyright (c) 2017 David Pacassi Torrico
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.