How to Disable JavaScript on Mozilla Firefox

Most guides on the web tell you to enable JavaScript. This one is the opposite: a step-by-step on how to switch JavaScript off in Mozilla Firefox, why you might want to, and how to verify the change actually took effect. Everything below is current as of Firefox 140+ in 2026.

Unlike Chrome, Edge, or Opera, Firefox does not expose a JavaScript toggle anywhere in the visual Settings UI. The only built-in switch lives on the advanced configuration page about:config, behind the javascript.enabled preference. That single boolean is global - it affects every website, every tab, every window. There is no per-site allow list in stock Firefox; for that you need an extension. We will cover both paths.

Why people disable JavaScript in Firefox

The audience for a "disable JavaScript" guide is real and broader than most people assume. The common reasons:

  • Privacy and anti-fingerprinting. JavaScript is the surface area that lets sites read your screen size, installed fonts, GPU, audio fingerprint, battery level, and dozens of other signals that combine into a unique browser fingerprint. Disabling JS shrinks that surface area dramatically. Firefox is also the base for Tor Browser, which goes further on this front.
  • Anti-tracking and anti-malware. Most browser-based tracking, cryptojacking, and malicious script delivery happens in JavaScript. Turning it off blocks the entire class of attack.
  • Web development and accessibility testing. Front-end and accessibility engineers regularly need to verify that pages still convey meaning when JavaScript is unavailable - testing graceful degradation, server-side rendering fallbacks, and progressive enhancement.
  • Performance and battery life. On older laptops, low-end Android tablets running Firefox, or any device under memory pressure, JS-heavy sites are the single biggest CPU and RAM consumer in the browser. Static HTML rendering is dramatically faster.
  • Reading without distraction. Sticky headers, autoplaying video, modal popups, infinite scroll, and chat widgets are all JavaScript. Disabling it turns most modern news and blog sites into clean, fast, scrollable text.
  • Selective access. Some users want to keep JS off most of the time and turn it on only for specific sites they trust - banking, work apps, email. Firefox needs an extension for that workflow, covered below.

How to disable JavaScript globally in Firefox (about:config)

This is the official, supported way and it takes about 30 seconds. The exact path is the same on every desktop platform - Windows, macOS, and Linux all use the about:config page - but the visible chrome around Firefox differs slightly. Expanded walkthroughs for Windows 11 and macOS Sequoia follow. iOS is a special case because Apple forces every browser on iPhone and iPad to use the WebKit engine, so the toggle moves to system Settings instead; that is also covered below.

The short version, applicable to any desktop platform:

  1. Open Firefox.
  2. Click the address bar, type about:config, and press Enter.
  3. Firefox shows a warning page. In current Firefox (140+ as of 2026) the button reads Accept the Risk and Continue. The older "I'll be careful, I promise" wording was retired several versions ago. Click it.
  4. You are now on the preferences search page. In the search box at the top, type javascript.enabled.
  5. The matching preference appears with its current value (default: true).
  6. Click the toggle button at the right end of the row. The value flips to false and the row turns bold to indicate it is no longer at the default.

That is it. JavaScript is now off for every site you visit. The change is live immediately - any tab you reload from this point on runs without JavaScript. You do not need to restart Firefox.

Walkthrough: Windows 11

Windows 11 shows the longest version of the flow because the about:config search box starts empty until you type, so you see every intermediate state.

Step 1: Open Firefox

Launch Firefox from the Start menu, taskbar, or desktop shortcut. Any sample page works for this walkthrough.

Mozilla Firefox window open on Windows 11 showing a sample page in a fresh tab
Firefox running on Windows 11, ready to navigate to about:config.

Step 2: Type about:config in the address bar

Click the address bar, type about:config, and press Enter.

Firefox address bar on Windows 11 with about:config typed into the URL field
Address bar showing about:config before pressing Enter.

Step 3: Accept the warning

Firefox shows the advanced preferences warning. Click Accept the Risk and Continue.

Firefox warning page with the heading Proceed with Caution and a blue Accept the Risk and Continue button
The "Accept the Risk and Continue" warning before about:config opens.

Step 4: Land on the about:config search page

The preferences page loads with an empty search box at the top. Nothing is listed until you start typing.

Empty about:config search page in Firefox on Windows 11 with a blank Search preference name field
about:config opened with an empty search field.

Step 5: Search for javascript

Type javascript (or the full string javascript.enabled) into the search field. Firefox filters the preference list as you type.

about:config in Firefox filtered by the search term javascript showing a list of related preferences
Filtered preference list after typing "javascript".

Step 6: Locate javascript.enabled (default: true)

Find the row labelled javascript.enabled. By default it shows the value true in regular weight, meaning JavaScript is currently enabled.

about:config row showing javascript.enabled set to true with a toggle button at the right end of the row
javascript.enabled at its default value of true.

Step 7: Click the toggle to flip to false

Click the toggle icon at the right end of the row. The value flips to false and the row turns bold, indicating a non-default setting. JavaScript is now disabled globally.

about:config row showing javascript.enabled set to false in bold text after toggling
javascript.enabled toggled to false; the bold row marks it as a non-default value.

Walkthrough: macOS Sequoia

The flow on macOS is the same in concept but visibly shorter, because typing the preference name in step 2 lands you directly on the filtered row without the empty-page or list-filter intermediates.

Step 1: Open Firefox

Launch Firefox from Launchpad, Spotlight, or the Dock.

Mozilla Firefox window open on macOS Sequoia showing a sample page
Firefox running on macOS Sequoia.

Step 2: Open about:config

Click the address bar, type about:config, and press Return. Accept the warning if prompted; on this device the warning was already dismissed previously.

Firefox on macOS Sequoia with about:config typed in the address bar
Loading about:config on macOS.

Step 3: Find javascript.enabled (default: true)

Type javascript.enabled into the search field. The single matching preference surfaces immediately, set to true.

about:config on macOS Sequoia showing javascript.enabled set to true
javascript.enabled at its default value of true on macOS.

Step 4: Toggle to false

Click the toggle icon at the right end of the row. The value flips to false and the row turns bold. JavaScript is now disabled site-wide in this Firefox profile.

about:config on macOS Sequoia showing javascript.enabled set to false in bold text
javascript.enabled toggled off on macOS.

Walkthrough: Firefox on iOS (iPhone and iPad)

Firefox on iOS is a special case. Apple's App Store rules require every browser on iPhone and iPad to use Apple's WebKit engine - the same engine that powers Safari. Firefox iOS is a Mozilla-branded UI on top of WebKit, not the Gecko engine you get on desktop or Android. As a result, Firefox iOS does not have its own about:config and does not have its own JavaScript switch.

To turn JavaScript off in Firefox on iOS, you toggle the system Safari setting. Disabling JavaScript there disables it for every WebKit-based browser on the device, which includes Firefox iOS, Chrome iOS, Edge iOS, and any other "browser" app on iPhone and iPad. Re-enabling it re-enables it everywhere.

Step 1: Open Settings

Open the iOS Settings app from the home screen or App Library.

iOS home screen with the Settings app icon highlighted
Launching the iOS Settings app.

Step 2: Tap Apps

Scroll down inside Settings and tap Apps. (On older iOS releases this entry was simply Safari in the top-level list; on iOS 18 and later it is grouped under Apps.)

iOS Settings app showing the Apps row in the main settings list
Settings > Apps on current iOS.

Step 3: Tap Safari

In the Apps list, tap Safari. This is the system entry that controls every WebKit browser on the device.

iOS Apps settings list with the Safari row highlighted
Safari row inside Apps settings.

Step 4: Open Advanced

Scroll to the bottom of the Safari settings screen and tap Advanced.

iOS Safari settings screen with the Advanced row at the bottom
Safari > Advanced.

Step 5: Locate the JavaScript toggle (currently on)

The JavaScript switch sits inside Advanced. By default it is on (green).

iOS Safari Advanced settings showing the JavaScript toggle in the on position
JavaScript toggle on (default).

Step 6: Toggle JavaScript off

Tap the switch. It turns grey, and JavaScript is now disabled for Safari, Firefox iOS, and every other WebKit browser on the device.

iOS Safari Advanced settings showing the JavaScript toggle in the off position
JavaScript toggle off; affects Firefox iOS as well.

How to verify JavaScript is actually disabled

Always confirm. The fastest way is to visit any site that explicitly tests JavaScript - this site is built for exactly that purpose, but a quick alternative is to open Firefox's developer console.

  1. Press F12 (or right-click any page and choose Inspect).
  2. Click the Console tab.
  3. Type 1+1 and press Enter.
  4. If JavaScript is enabled, the console returns 2. If it is disabled, you get an error or no response.

You can also reload a JavaScript-heavy site (Gmail, YouTube, Twitter/X, Google Maps) and watch what happens. With JS off, Gmail shows a static fallback page, YouTube shows thumbnails but cannot play video, Maps shows nothing useful, and most single-page apps display a blank screen or a "please enable JavaScript" notice.

If you want a quick visual confirmation that the toggle landed, the about:config row itself is the cleanest signal: bold text and the value false is the off state.

about:config row in Firefox showing javascript.enabled set to false in bold, confirming the disabled state
The bolded false value is your in-browser confirmation that JavaScript is off.

How to re-enable JavaScript in Firefox

The exact same path, in reverse:

  1. Address bar, about:config, Enter.
  2. Click Accept the Risk and Continue if prompted.
  3. Search for javascript.enabled.
  4. Click the toggle button to flip it back to true.

Reload any open tabs that need JavaScript. You do not need to restart the browser. On iOS, reverse the Settings flow: Settings > Apps > Safari > Advanced > JavaScript back to on.

How to disable JavaScript only for specific sites

Stock Firefox does not offer this in the GUI. The javascript.enabled flag is all-or-nothing. If you want per-site control - JS on for your bank, off for news sites - install one of these extensions:

  • NoScript Security Suite. The classic per-site JavaScript control extension. Block by default, click to allow specific domains, granular control over scripts per origin. Steeper learning curve but the most powerful.
  • uBlock Origin (in advanced mode). Primarily an ad blocker, but its dynamic filtering panel lets you block JavaScript per-site or per-frame. Less granular than NoScript but easier for most people.
  • Privacy Badger. Lighter touch - it learns over time and blocks tracking scripts automatically rather than asking you to make decisions.

Install any of these from addons.mozilla.org. None of them require you to flip javascript.enabled; they hook into Firefox's content blocking system instead.

A note on Tor Browser

If your reason for disabling JavaScript is privacy or anti-fingerprinting and you are willing to use a different browser, Tor Browser - a hardened Firefox fork - has built-in JavaScript security levels accessible from the shield icon. Set the security slider to Safer or Safest and JavaScript is disabled site-wide or restricted to HTTPS-only sites. That is out of scope for this guide, but worth knowing as a one-step alternative.

What stops working when JavaScript is off

Be ready. With JS disabled, you will lose:

  • Most single-page applications - Gmail, Google Docs, Slack, Notion, Figma, Trello, Discord web, etc.
  • Video players on YouTube, Netflix, Twitch, and most streaming sites.
  • Modern checkout flows on a lot of e-commerce sites.
  • Online banking dashboards (almost universally JS-dependent).
  • Live chat widgets, comment sections, and most social media feeds.
  • Map and route services like Google Maps and OpenStreetMap.

What still works fine: most news articles, Wikipedia, blog content, documentation sites, search results pages, RSS feeds, and any site built on server-rendered HTML. You may be surprised how much of the web still works - and how much faster it feels.

Workflow tips for living with JavaScript off

If you are planning to leave JavaScript disabled most of the time, a few practical patterns make it sustainable:

  • Set up two profiles. Firefox supports multiple profiles via about:profiles. Create a "NoJS" profile for browsing and a "Default" profile for banking, work apps, and anything that requires JavaScript. Each profile remembers its own javascript.enabled state, history, bookmarks, and extensions.
  • Use a launcher shortcut. On the desktop, point a shortcut at firefox.exe -P NoJS (Windows) or use firefox -P NoJS on Linux/macOS to open the JS-off profile directly.
  • Bookmark about:config?filter=javascript.enabled. The URL pre-filters the preferences search so toggling takes one click instead of three.
  • Pair with a content blocker. uBlock Origin works whether or not JavaScript is enabled and removes most of the empty placeholders that JS-heavy sites leave behind, making no-JS browsing visually cleaner.

Common issues and troubleshooting

If your toggle does not seem to take effect:

  • You changed the setting but the site still works. Reload the tab (Ctrl+R or Cmd+R). The flag applies to new page loads, not to scripts already running.
  • Some elements still animate. CSS animations and transitions are not JavaScript - they keep running. Same goes for autoplaying video tags with the autoplay attribute, which is HTML, not JS.
  • about:config does not open. If your Firefox is managed by a corporate or school policy, about:config can be locked. There is no workaround short of using a personal device.
  • The toggle keeps flipping back to true. An extension or sync profile may be re-enabling it. Check about:addons for any extension that lists "access browser settings" in its permissions, and check about:preferences#sync if you sync settings across devices.
  • Firefox iOS still runs JavaScript. The desktop about:config trick does not exist on iPhone or iPad. You have to use the iOS Settings > Apps > Safari > Advanced > JavaScript toggle shown above; the change takes effect across all WebKit browsers on the device.

Summary

To disable JavaScript in Firefox on Windows, macOS, or Linux: about:config → accept the warning → search javascript.enabled → toggle to false. To re-enable: same path, toggle back to true. On iPhone or iPad, use Settings > Apps > Safari > Advanced > JavaScript instead, since Firefox iOS runs on Apple's WebKit engine. For per-site control on desktop, install NoScript or uBlock Origin. To verify, use the developer console (F12) or visit a site that detects JavaScript.

F.A.Q

Why would I want to disable JavaScript on Firefox instead of just leaving it on?

Three audiences cover almost all the reasons. Privacy-focused users disable JavaScript to shrink their browser fingerprint and block tracking, cryptojacking, and most browser-based malware. Web developers and accessibility engineers turn it off to test that pages still work without scripts. Users on slow devices or low battery disable it for the speed and power savings, since JavaScript is the single biggest resource consumer in the browser. You can also disable it just to read articles without sticky headers, autoplay video, popups, and chat widgets - most of which are JavaScript-driven.

Will websites still work in Firefox after I disable JavaScript?

Some will, many will not. News articles, Wikipedia, blogs, documentation, and any server-rendered HTML page typically display fine and feel noticeably faster. What breaks: Gmail, Google Docs, YouTube playback, online banking, single-page apps like Slack or Notion, most checkout flows, live chat widgets, and Google Maps. If a site is unusable, you can quickly toggle javascript.enabled back to true in about:config and reload, or install an extension like NoScript or uBlock Origin to allow JavaScript for just that one site while keeping it blocked everywhere else.

Can I disable JavaScript for one specific site in Firefox?

Not with built-in Firefox settings. The javascript.enabled flag in about:config is global - it applies to every site at once. For per-site control, install an extension. NoScript Security Suite is the long-running classic and offers the most granular control. uBlock Origin's advanced mode can block JavaScript per domain or per frame and is easier for newcomers. Both are free, both available from addons.mozilla.org. With either installed, you can leave JavaScript enabled globally and block it only on the sites you choose - or do the opposite and block by default, allowing only sites you trust.