How to Disable JavaScript for Specific Websites in Google Chrome

Modern web applications rely heavily on JavaScript to deliver dynamic content, user interactions, and responsive interfaces. However, excessive or poorly optimised client-side scripts frequently cause performance stutter, unskippable modal overlays, intrusive autoplaying media, and aggressive ad tracking. Turning off JavaScript globally breaks the majority of websites on the internet, making complete deactivation impractical.

Google Chrome features granular site-level content controls that allow you to selectively disable JavaScript on problematic domains while leaving the rest of the web fully functional. Whether you are debugging web scripts, bypassing distracting screen overlays, or streamlining read-only content, Chrome provides fast address-bar and settings-based toggles to manage script execution.

Disabling JavaScript for an Active Tab via Chrome Site Settings

The quickest way to silence JavaScript on the website currently in front of you is through the address bar security controls.

  1. Launch Google Chrome and open the website where you wish to disable scripts.
  2. Click the Site information icon (the tune sliders or padlock icon) situated on the far left of the omnibox address bar.
  3. In the dropdown menu, click Site settings. Chrome opens a dedicated configuration tab for that specific domain.
  4. Scroll down through the Permissions list to find JavaScript.
  5. Click the dropdown menu next to JavaScript and change the permission from Allow (default) to Block.
  6. Switch back to the original website tab.
  7. A blue prompt reading “To apply your updated settings to this site, reload this page” will appear. Click Reload (Ctrl+R or Cmd+R).

Adding Websites to the JavaScript Blocklist in Chrome Settings

If you prefer to configure an exclusion list ahead of time or prevent an entire domain hierarchy from running scripts:

  1. Click the three vertical dots menu in the top-right corner of Chrome and choose Settings.
  2. Select Privacy and security from the left navigation pane.
  3. Click Site settings in the main window.
  4. Under the Content section, click JavaScript.
  5. Verify that the default behaviour remains set to Sites can use JavaScript.
  6. Scroll to the Customised behaviours section at the bottom.
  7. Click the Add button next to Not allowed to use JavaScript.
  8. Enter the root domain pattern. To block an entire domain including all subdomains, use the wildcard prefix format:
    [*.]example.com
  9. Click Add. Chrome immediately suppresses JavaScript execution for that domain on all future visits.

Temporarily Disabling JavaScript with Chrome DevTools

If you are a web developer or technical auditor needing to test how a webpage degrades without JavaScript without modifying permanent browser settings:

  1. Navigate to the target webpage.
  2. Press Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (macOS) to open Chrome DevTools.
  3. Open the Command Menu by pressing Ctrl+Shift+P or Cmd+Option+P.
  4. Type javascript into the search bar.
  5. Select Disable JavaScript from the filtered actions and press Enter.
  6. A yellow warning badge will appear over the Sources icon in DevTools indicating scripts are suppressed. Reload the page to test your fallback layouts.
  7. To re-enable scripts, reopen the Command Menu (Ctrl+Shift+P) and select Enable JavaScript.

Verifying Page Degradation and Re-Enabling Scripts

  • Visual address bar indicators: When viewing a site with blocked JavaScript, Chrome displays a red cross indicator over the page icon in the address bar, confirming that scripts are actively intercepted.
  • Restoring script permissions: To restore normal functionality, click the site information icon in the address bar, toggle JavaScript back to Allow, and refresh the browser.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.