You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
David Pacassi Torrico cbe912cf16
Merge pull request #75 from heatherbooker/replace-black-white-list
2 years ago
.github Create FUNDING.yml 3 years ago
_locales/en Add an options page with an initialized domain list 5 years ago
background Remove uses of blacklist/whitelist 2 years ago
icons Update icon when switching the JS state is not possible 4 years ago
pages Remove uses of blacklist/whitelist 2 years ago
.gitignore Refactor project structure and remove .gitignore customizations 5 years ago
CONTRIBUTING.md Add a helpful resources section for contributors 4 years ago
LICENSE Initial commit 5 years ago
README-reviewers.md Fix the Gulp compile error 3 years ago
README.md Remove uses of blacklist/whitelist 2 years ago
create-packages.sh Update packaging script 4 years ago
gulpfile.js Fix the Gulp compile error 3 years ago
manifest-gecko.json Bump version to 2.3.1 4 years ago
manifest.json Bump version to 2.3.1 4 years ago
package-lock.json Fix potential security vulnerabilities 3 years ago
package.json Update npm packages 3 years ago
push-to-mobile.sh Remove source SASS and JS files from the web extension package script as they are not needed in the final environment 4 years ago

README.md

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 a 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 blocked 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:

  • Install Node.js and npm
  • Install gulp.js (run npm install --global gulp-cli)
  • Clone or download this 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 disable-javascript@pacassi.ch.xpi 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.