Giter VIP home page Giter VIP logo

Comments (2)

Minabsapi avatar Minabsapi commented on August 24, 2024

Second this. This is mostly the feature I'm looking for, I'm fine with JavaScript running at page rendering but I don't want it to continue and waste memory after that

Edit: Upon a quick glance at the source code, it seems this extension, like basically every similar one on the addon store, just re-sends the request with a header appended and some additional tricks to get a new page without JavaScript. So we can't get rid of the refresh since it's here by design
Most of people like me who installed this addon with that feature in mind may have thought it could directly disable it, nuking the scripts and stopping the engine, but we've clearly been misguided. It could have been possible when Firefox used to accept addons that were interacting more directly with the browser, but now thanks to the ""security"" oriented mindset thinking every user is an idiot who has no idea what they're installing it is no longer possible and we're reduced to use glorified webpages interacting with a poor API leaving no freedom to attackers indeed, but also to advanced developers. Good job, Firefox team.

from disable-javascript.

daveloyall avatar daveloyall commented on August 24, 2024

I came here to request this feature.

After reading Minabsapi's comment, I'd like to specify the functionality I am looking for... maybe there is some way to obtain it, since it may be more limited than fully disabling javascript.

The primary reason I want to disable javascript at any time is to prevent webpages from doing things in response to something I do. That is, some web pages have javascript functions that are triggered "on event".

Example 1: I type my valid email address into a form and some javascript is fired on the keypress event (or the submit event) which incorrectly evaluates that my email address is not valid. (My address has hyphens in the domain part, which some web developers do no realize is valid.) Sometimes if I use Developer Tools to disable the event, I can successfully use the website (because the broken code was client-side only; the server-side code was less broken). Suppose that the rest of the form needs javascript to render properly: then a page refresh after disabling javascript will not achieve my goal.

Example 2: I scroll on a page and some "sticky" floating div appears. A page refresh after disabling javascript might achieve my goal, unless rendering the rest of the page requires javascript.

Example 3: I right click on a page, or attempt to paste, or attempt to select text to copy, etc, and the javascript on the webpage says no. (UGH!! :)) Again, a page refresh after disabling javascript might achieve my goal, unless rendering the rest of the page requires javascript.

I hope this helps someone somehow!

from disable-javascript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.