375 views

How to disable JavaScript in popular browsers

JavaScript is the backbone of modern websites, providing interactivity and functionality to everyday online resources. It enables dynamic features like tooltips, buttons, forms, and sliders, and allows for the creation of animations and transitions. Additionally, JavaScript can validate user input in forms and perform other essential functions.

Despite its benefits, JavaScript scripts can pose security risks. Certain user parameters can be exposed through JavaScript, particularly through the properties of the "navigator" object. This includes details like:

  • user agent;
  • operating system;
  • search engine manufacturer, version, language;
  • whether cookies are enabled.

Scripts on websites have the capability to collect information from filled-out forms, including login credentials, passwords, and even credit card details. This data collection can be exploited by attackers, underscoring the importance of blocking scripts in some cases. Disabling scripts not only enhances internet security but also offers several other benefits:

  • Protecting data privacy: Disabling scripts can prevent websites from tracking user behavior and collecting personal data without consent.
  • Improving performance: Pages without JavaScript tend to load faster, enhancing the overall browsing experience.
  • Testing: Developers can disable JavaScript to troubleshoot issues, analyze scripts, and ensure the website functions correctly.

You can easily check JavaScript settings in your web browser and disable it if necessary. However, since JavaScript is enabled by default, you'll need to manually deactivate it through your browser's security settings. The steps for doing so and changing browser configurations will be discussed below.

How to disable JavaScript in Google Chrome

  1. Open Chrome and access the main menu by clicking on the icon located to the right of the search bar. Select “Settings” from the dropdown menu.

    1en.png

  2. Navigate to the “Privacy and Security” section within the settings.

    2en.png

  3. Under “Privacy and Security”, find and click on “Site Settings”.

    3en.png

  4. Scroll down to the “Content” section and choose “JavaScript”.

    4en.png

  5. Choose the option “Don’t allow sites to use JavaScript”.

    5en.png

JavaScript is now disabled in Google Chrome. The changes take effect immediately, so any websites you visit will no longer run JavaScript scripts.

Disabling through a browser extension

Another convenient method to disable JavaScript in the Chrome browser is by installing a specific extension, such as the “Enable JavaScript” add-on. Install the “Enable JavaScript” extension and add it to your browser's toolbar for easy access.

6.png

  1. Click on the extension icon to disable JavaScript. The icon will turn red, indicating that JavaScript is now disabled, and a corresponding symbol will appear in the address bar.

    7.png

  2. The extension allows you to enable or disable JavaScript for specific websites as needed. To access the options, right-click on the extension icon and select “Options” from the menu.

    8en.png

  3. In the settings window, you can enter the URLs of websites where you want JavaScript to be always enabled or disabled.

    9en.png

  4. After entering the URLs, click on the “Save your settings” button to apply the changes.

    10en.png

With this extension, even if you disable JavaScript globally, it will still be active on the sites you have whitelisted.

How to disable JavaScript in Mozilla Firefox

To disable JavaScript in Firefox, you can follow these steps:

  1. Open a new tab in your browser. Enter the command “about:config” in the search query line and press “Enter”.

    11en.png

  2. In the warning notice that appears, accept the risks to continue.

    12en.png

  3. A field will appear where you can find and change browser settings. Enter “javascript.enabled”.

    13en.png

  4. Hover your mouse over the switch icon in the field that appears below.

    14en.png

  5. Toggle the switch. The word “false” should appear next to the parameter.

    15en.png

  6. To revert to your previous settings, follow the same steps but at the end, click on the “Reset” icon.

    16en.png

JavaScript is now disabled in your Firefox browser.

Disabling JavaScript in Mozilla Firefox using an extension

An alternative method to control JS script activity in Firefox is to use a special add-on like “JavaScript Switcher” from meetDeveloper. Here's how to do it:

  1. Install the extension and navigate to the website you want to work with. A green addon icon will appear in the URL bar, indicating that scripts are enabled for that site.

    17.png

  2. Click on the icon to disable JavaScript for that specific site.

    18.png

  3. The extension will remember these settings, so the next time you visit the website, scripts will remain inactive. However, they will still work on all other sites.

This tool is convenient if you only need to disable scripts for specific sites rather than the entire browser.

How to disable JavaScript in Safari

To disable JavaScript in Safari, follow these steps:

  1. Click on the “Safari” inscription in the top panel to access the browser's main menu. Then, select “Preferences” from the drop-down menu.

    19en.png

  2. In the “Preferences” section, navigate to the “Security” subsection.

    20en.png

  3. Locate the “Web Content” category and disable the “Enable JavaScript” option, which is usually enabled by default.

    21en.png

Once disabled, JavaScript scripts will no longer run in the browser.

How to disable JavaScript in Microsoft Edge

To disable JavaScript in Microsoft Edge, follow these steps:

  1. Open your browser and expand the main menu located to the right of the search bar. Select “Settings” from the menu.

    22en.png

  2. In the side menu, locate and click on “Cookies and site permissions”.

    23en.png

  3. Under the “All permissions” section, find and click on “JavaScript”.

    24en.png

  4. In the new window, deactivate the “Allowed (recommended)” option.

    25en.png

The settings will be applied automatically, disabling JavaScript in the browser, and allowing you to continue working without JS scripts running.

How to disable JavaScript in Opera

To disable JavaScript in Opera, follow these steps:

  1. Open your browser and click on the gear icon in the left panel at the bottom.

    26.png

  2. In the menu that appears, select the “Privacy and security” tab.

    27en.png

  3. Navigate to the “Site Settings” section.

    28en.png

  4. Locate the “JavaScript” option in the new menu.

    29en.png

  5. Select the option “Don’t allow sites to use JavaScript”.

    30en.png

Once done, JavaScript scripts will be disabled, and sites will load without using them.

Disabling JavaScript can impact website functionality but speeds up page loading, removes pop-ups (including ads), and allows bug testing without JavaScript. It also enhances browsing safety.