How Can I Stop Scripts on a Page in Firefox?

9

How can I stop scripts on a page in Firefox? I don't care if the solution is draconian. Super-tech-savvy solutions are also fine.

Clarification: I don't want to turn off scripts permanently. I want to be able to kill a script (or all active scripts) on-demand for a given web page.

Sildoreth

Posted 2017-03-07T14:40:48.760

Reputation: 203

3https://noscript.net/ – Arkadiusz Drabczyk – 2017-03-07T14:46:31.127

2Pressing ESC stops script execution. – simlev – 2017-03-07T14:53:56.523

Pause, abort or disable? If you want to temporarily enable JS you should use NoScript. – Oskar Skog – 2017-03-07T16:10:23.893

5Pressing ESC WILL NOT stop ReactJS from executing. – None – 2018-02-20T13:32:13.350

Answers

2

Pressing ESC worked for me as suggested by @simlev. For me, it was a page where a blocking pop-over would be displayed in 5-10 seconds after the page was loaded. Pressing ESC effectively stopped the JavaScript on that page. This wouldn't be a replacement for extensions like NoScript, but could be handy in similar situations.

dojuba

Posted 2017-03-07T14:40:48.760

Reputation: 129

2This does not work. Sites still show up with high CPU usage in about:performance after after pressing ESC – JKAbrams – 2019-06-02T17:18:10.403

Well, this was not an absolute definite answer but merely 'one' possible answer that worked for me and obviously for some others. Clearly, the answer will depend on many factors, such as browser, JS framework etc. – dojuba – 2019-06-04T08:02:45.630

0

Firefox provides a method for disabling JavaScript within its configuration settings. You can put about:config in the address bar where you would normally place the URL for a page you wished to visit. You will see a warning stating "Changing these advanced settings can be harmful to the stability, security, and performance of this application. You should only continue if you are sure of what you are doing." Click on the "I'll be careful, I promise!" button. Look for the javascript.enabled setting; when you've found it double-click on it to toggle the setting from enabled to disabled. Or you can right-click on the setting and choose "Toggle". But that will enable/disable JavaScript for all sites and all pages, so you would have to disable JavaScript before visiting the page and re-enable it afterwards. For finer-grained control at the domain and page level, you can install the NoScript extension for Firefox.

Another option is the PrefBar add-on to add a button for toggling JavaScript off and on for the current tab. The developer's home page is at PrefBar.

moonpoint

Posted 2017-03-07T14:40:48.760

Reputation: 4 432