Skip to content

Adds the ability to disable JavaScript on specific sites.

License

Notifications You must be signed in to change notification settings

jaunotoshi/disable-javascript

Repository files navigation

Chrome Web Store Chrome Web Store Chrome Web Store Mozilla Add-on Mozilla Add-on Mozilla Add-on Twitter URL

Disable JavaScript

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).

Supported browsers

Usage

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.

Why to use this web extension

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!

Installation from source

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 on Load Temporary Add-on. Load then the manifest.json file in the project's root folder
    • Google Chrome: Visit chrome://extensions/ and click on Load unpacked. Choose the project's root folder
  • If you simply want to test new branches/custom code without interfering with the installed version of the web extension, check out these browsers:

Pushing to mobile

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 the manifest-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

Contribution guidelines

If you want to contribute in any way or simply report bugs, please have a look at the contribution guidelines first.
Thank you!

Support this project

If you want to support this project, please think about making a small contribution, thank you!

Future plans

Feature proposals are being added as issues on GitHub.
If you want something to be added, create an issue or upvote an existing one.

Other web extensions

Maintainer

License

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.

About

Adds the ability to disable JavaScript on specific sites.

Resources

License

Stars

Watchers

Forks

Packages

No packages published