# How to Disable JavaScript for One Site in Chrome (and Turn It Back On)

> Block JavaScript on a single site in Chrome from its settings, from DevTools or in one click, and get it back when a page stops working.

Source: https://www.extensionshop.store/blog/disable-javascript-one-site-chrome
Markdown: https://www.extensionshop.store/blog/disable-javascript-one-site-chrome.md
Last updated: 2026-11-24

By Iliass El Barhoumi · 2026-11-24 · 3 min read · Developer Tools

To block JavaScript on one site in Chrome, click the icon to the left of the address, open Site settings, and set JavaScript to Don't allow. Reload the page and that site runs without JavaScript while every other site stays as it was. You can do the same from Chrome's settings page, test a page briefly from DevTools, or switch it in one click with an extension. I build one, [JS Switch](https://www.extensionshop.store/extension/js-switch).

## Method 1: The Site's Settings

- Open the site you want to block
- Click the icon to the left of the address in the address bar, then Site settings
- Find JavaScript and change it to Don't allow (Chrome may label it Block)
- Go back to the tab and reload it

To undo it, open the same page and set JavaScript back to Allow, or to the default.

## Method 2: Chrome's JavaScript Settings Page

Type chrome://settings/content/javascript into the address bar. Under Customized behaviors, click Add next to "Not allowed to use JavaScript" and enter the site. Use [*.]example.com to cover every subdomain of example.com as well. This page also lists every site you have blocked or allowed, which makes it the place to clean up old rules.

## Method 3: DevTools, for a Quick Test

Open DevTools (Ctrl+Shift+I, or Cmd+Option+I on a Mac), press Ctrl+Shift+P (Cmd+Shift+P), type "Disable JavaScript" and press Enter. It applies only to that tab and only while DevTools stays open, so nothing is saved. Run "Enable JavaScript" or close DevTools to get it back.

## Why Turn JavaScript Off for One Site?

- See a page the way crawlers that don't run JavaScript see it. Many AI crawlers fetch the HTML without running scripts, according to [Vercel's analysis of AI crawler traffic](https://vercel.com/blog/the-rise-of-the-ai-crawler), so content that only appears after JavaScript runs may be invisible to them
- Test your own site's fallback: does the page still show its content and links without scripts?
- Calm a heavy page: stop autoplaying media, pop-ups and scripts that slow an old laptop to a crawl on a site you only read
- Cut down tracking on a site that works fine as plain HTML

## Method 4: One Click With JS Switch

Chrome's settings work, but they are four clicks deep, and the toggle wording leaves you guessing which way it is set. JS Switch puts it on the toolbar: click it, or press Alt+Shift+J, and JavaScript is blocked on the site you are on and remembered for that site only. The popup says it in plain words, "JavaScript is blocked on example.com", with one button that does the opposite.

- Preview without JavaScript: block a site only until you close the tab, handy for SEO and AI-visibility checks, and never saved as a rule
- Flip the default: block JavaScript everywhere except the sites you allow
- Conflict check: after every switch it asks Chrome what really happens, and tells you if another extension or a policy is overriding it
- Allow everywhere: one click removes every rule and checks that JavaScript runs again
- An optional OFF badge on the toolbar for blocked sites

**Switch JavaScript per site in one click:** JS Switch blocks or allows JavaScript on the site you are on, remembers it, and never reads page contents. Install: https://chromewebstore.google.com/detail/bdiodkodgcnlnnpoffkghdalonggjdha

## The Four Methods Compared

*Ways to disable JavaScript for one site in Chrome*

| Method | Remembered | To switch | To undo |
| --- | --- | --- | --- |
| Site settings | Yes, for that site | 4 clicks and a reload | The same menu |
| chrome://settings/content/javascript | Yes, with subdomain patterns | Type the site into a list | Remove it from the list |
| DevTools "Disable JavaScript" | No, only while DevTools is open | Command Menu | Close DevTools |
| [JS Switch](https://www.extensionshop.store/extension/js-switch) | Yes, for that site | 1 click or Alt+Shift+J | The same button, or Allow everywhere |

## JavaScript Won't Come Back? How to Fix It

- Open chrome://settings/content/javascript and check the default is "Sites can use JavaScript", then look for the site under "Not allowed to use JavaScript" and remove it
- Check for an extension that blocks scripts: Chrome lets the most recently installed one win for a site, so an old blocker can override your setting
- On a work or school computer, a policy set by your administrator can lock the setting
- With JS Switch, click Allow everywhere: it removes every rule it made and confirms JavaScript runs again. Removing the extension also removes its rules

## The Short Version

For a one-off, use the site's settings or DevTools. If you switch JavaScript on and off regularly, for testing, SEO checks or reading heavy sites, a toolbar switch that remembers each site saves the clicks and tells you plainly which way it is set.

## Related extension

[JS Switch](https://www.extensionshop.store/extension/js-switch) — Disable JavaScript per site, in one click. Free.

Tags: disable javascript chrome, block javascript one site, javascript settings, seo testing, js switch
