OneBite.Dev - Coding blog in a bite size

turn off javascript in tor

Code snippet for how to how to turn off javascript in tor with sample and detail explanation

Turning off JavaScript in Tor can be a precautionary measure you choose to take for extra privacy or security. This short guide will show you how to do just that in a few straightforward steps.

Instructions for Deactivating JavaScript in Tor

  1. Launch your Tor browser and click on the shield icon or three-line button found near the upper right corner of your browser window.

  2. A drop-down menu will appear. Click on ‘Preferences’.

  3. On the Preferences screen, go to the ‘Privacy & Security’ tab.

  4. Scroll down to the ‘Content Blocking’ section.

  5. Look for the ‘JavaScript’ option and toggle it off. If you don’t see it, continue to the ‘Custom Settings’.

  6. Click on ‘Custom’, you’ll find ‘JavaScript’ as one of the options to disable.

  7. Ensure that ‘JavaScript’ is unchecked or set to ‘Block’.

  8. Close the Preferences tab to save your changes.

Explanation of Each Step

  1. The shield or three-line icon is basically your access to the browser’s settings.

  2. ‘Preferences’ is where you’re able to personalize your browsing experience within Tor.

  3. The ‘Privacy & Security’ tab houses settings that have the potential to impact the safety of your browsing sessions. It is naturally the home of the JavaScript control.

  4. ‘Content Blocking’ refers to the suite of options that directly impact the kind of content displayed in your browser.

  5. The ‘JavaScript’ option is your gateway to controlling JavaScript’s behavior. If it’s available then you can simply disable from here.

  6. ‘Custom’ settings allow for personalized control over the different forms of content that can run in your browser.

  7. Unchecking or blocking ‘JavaScript’ will prevent it from running on any sites you visit.

  8. Closing the ‘Preferences’ tab ensures your new settings are saved and will be active in all your future browsing.

Beware, some websites that rely heavily on JavaScript might not function properly when it’s deactivated. But, if privacy and security are your primary concern, then compromising on certain functionalities might be a fair trade-off.

javascript