How to disable javascript in tor?

In this article, I will explain to you on how to turn off JavaScript in Tor Browser. By the end of this article, you will learn three easy techniques to disable JavaScript on Tor on browser.

Many Tor Browser users keep JavaScript enabled, but it’s safer to disable it when accessing onion sites (websites on Tor).

In the past, there was a vulnerability that allowed onion websites to reveal the actual IP address of Tor users.

Techniques To Disable the JavaScript on Tor

Here are the following techniques that can disable that JavaScript on Tor:

Technique 1: Edit the about:config settings

This method is the simplest because you don’t need to install anything. We just need to make some changes to the settings of Tor Browser.

Here are the simple steps:

  • Open the Tor browser and go to the URL bar.
  • Type “about:config” and press Enter.
  • A confirmation message will appear. Click the blue button to accept it.
  • In the search bar, type “javascript.enabled”.
  • Find the entry for “javascript.enabled” and double click on it.
  • Change the value from “True” to “False”.
  • By doing this, Tor will disable JavaScript.
Edit the about:config settings in how to disable javascript in tor

Technique 2: Use the JavaScript Switcher addon

The second technique is for you if there are times when you want to keep JavaScript enabled.

I’ll show you an add-on that allows you to easily turn JavaScript on and off with a single click.

Here are the three simple steps to use JavaScript Switcher in Tor Browser:

  • Install JavaScript Switcher by clicking on “Add to Firefox”.
  • After installation, you will notice a small button labeled “JS” on the right side of the URL bar.
  • When the button is grayed out, JavaScript is disabled. When it turns green, JavaScript is enabled.
  • To toggle between the two states, simply click on the button.

Initially, I was often confused about the colors that shown whether JavaScript was disabled or enabled.

However, once you start using it regularly, you’ll find the JavaScript switcher addon to be very useful.

If you prefer not to install this addon, you should try the final method!

Technique 3: Disable JavaScript in Tor settings

In this final technique, we will adjust Tor’s security settings to disable JavaScript (JS).

  • Open the Tor settings menu on the right.
  • Choose “Preferences”.
  • Click on “Privacy and Security”.
  • Scroll down to the security level settings.
  • Select “Safest” to disable JavaScript on all sites.
Disable JavaScript in Tor settings of how to disable javascript in tor

Conclusion

This is the end of the article, and now you can easily disable JavaScript! We have discussed the three techniques of How to disable JavaScript in tor.

Additional Resources

Leave a Comment