How to Allow or Block JavaScript in Firefox Computer?

Learn how to allow or block the JavaScript (JS) execution for all sites on Firefox browser. JS make site interactive, likewise it's also prone to hacking.

Nowadays almost all browsers come with JavaScript(JS) support. It is a programming language used by web developers to make their webpages more interactive by adding functionalities such as a menu, sounds, animations, and many other interesting features. Occasionally we might need to disable it due to security reasons.

Javascript is introduced to improve the user experience but it has its demerits. The most common demerit of Javascript is advertising popups and other irrelevant information that needs to be closed.

I’ve always found the irrelevant information very distracting and irritating, hence prefer disabling it. It is also misused by a hacker to hijack our browser and inject the malware. Disabling Javascript can solve numerous problems for you. It will also enhance browser security by eliminating the possibility of hijacking.

Related: How to Enable Privacy and Security in Firefox Computer?

The major downside of disabling the JavaScript can break a site that is purely developed on it. You may also lose the interactive feature that JQuery(one of the JS libraries) has to offer.

Block Javascript on Firefox

Javascript can cause your browser to lag sometimes due to its heavy nature and high processor requirement. By disabling JavaScript for the site, you will be able to explore the simplified version of the webpage and fix your security issues.

Here are the steps to block JavaScript on Firefox: 

  1. Launch the Firefox browser on the computer.
  2. Enter about:config command in the URL bar.
    How to block javascript on Firefox
  3.  Click on the Accept Risk and Continue button.
    How to block javascript on Firefox-2
  4. Lookup for javascript.enabled in the about:config search bar.
    How to block javascript on Firefox
  5. Click on firefox-javascript-toggle the button to change the value to false.

This will disable JavaScript on your firefox browser and will be no longer executed on any site. Like I mentioned earlier, this will break the sites that heavily rely on the JS functions.

Allow JavaScript in Firefox

Now if you have disabled the Javascript then you might notice that certain websites may not be working. It’s expected behavior since these sites need JS execution in the backend to perform tasks. You have no other options except allow the JS to run on Firefox.

Here are the steps to allow Javascript on the Firefox browser: 

  1. Launch the Firefox computer browser.
  2. Enter about:config command in the URL bar.
    How to block javascript on Firefox
  3.  Click on the Accept Risk and Continue button.
    How to block javascript on Firefox-2
  4. Lookup for javascript.enabled in the about:config search bar.
    How to block javascript on Firefox
  5. Click on firefox-javascript-toggle button to change the value to true.

Once you made the changes, just relaunch the Firefox browser and verify that JS is running and sites are no longer broken.

Bottom Line: Firefox Javascript Settings

You can disable Javascript to get rid of anonymous advertisements that pop up to ruin your browsing experience. It also helps in staying protected from digital hijackers.

However, few websites won’t work if you have disabled the Javascript. So it is suggested that you allow Javascript before you browse those sites so they can load properly.

I kept my JavaScript enabled since I don’t want to break all the websites that I browsed through.

I wish Firefox might come up with a robust option wherein we can manually allow or block the JavaScript execution on the sites. I really like the way chrome has handled the JS options and has the dedicated settings page.

Related: How to Block or Allow Browser Cookies in Firefox Computer?

What is your preferred option with regards to JavaScript? Did you keep it enabled by default or have you disabled it? What did make you change this option?

Lastly, here are the recommended web browsers for your computer and mobile phone that you should give a try.

WindowsMacOSiOSAndroidLinux
Chrome WindowsChrome MacChrome iOSChrome AndroidFirefox Linux
Firefox WindowsSafari MacSafari iOSEdge AndroidChrome Linux
Edge WindowsFirefox MacEdge iOSSamsung InternetEdge Linux

If you've any thoughts on How to Allow or Block JavaScript in Firefox Computer?, then feel free to drop in below comment box. If you find this article helpful, please consider sharing it with your network.

Also, please subscribe to our BrowserHow YouTube channel for helpful videos tutorials.

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases using our links; of course at no extra cost to you (indeed, you may get special discounts). This will support our effort to create more useful content, and keep it open and free forever.
Share

Leave a Reply

Your email address will not be published. Required fields are marked *