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. The current Firefox iOS/iPadOS app has no global JavaScript switch that this guide can verify; Apple's Safari setting is not presented as a Firefox control.

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)

The current Firefox iOS/iPadOS app has no global JavaScript switch that this guide can verify from vendor documentation. Apple's JavaScript setting under Safari is a Safari control; this guide does not present it as a Firefox control.

For development testing, use desktop DevTools or a browser with a documented JavaScript control. For privacy, use Firefox's documented tracking or content protections, but do not describe those protections as equivalent to disabling all JavaScript.

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/iPadOS, this guide has no verified Firefox-specific global switch; do not use Safari's setting as a Firefox control.

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. Firefox for iOS has no about:config control. Check content blockers, network filters, and the exact app/iOS versions; do not treat Safari's setting as a verified Firefox control.

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 it, use the same path and toggle back to true. Firefox for iOS does not expose about:config, and this guide does not publish an unverified Safari-based workaround. For per-site control on desktop, use NoScript or uBlock Origin.

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?

On desktop Firefox, some sites will still render static content while many interactive features will not. Gmail, Google Docs, video playback, banking flows, single-page apps, checkouts, live chat, and maps commonly require JavaScript. To restore it on desktop, set javascript.enabled back to true in about:config and reload. For per-site control, use a maintained extension. Firefox for Android Release does not expose about:config, and this guide has no verified Firefox-specific global switch for iOS/iPadOS.

Can I disable JavaScript for one specific site in Firefox?

Not with built-in desktop Firefox settings. The javascript.enabled preference in about:config is browser-wide, not site-specific or container-specific. For per-site control on desktop, use a maintained extension such as NoScript or uBlock Origin and review its current permissions and documentation. Firefox for Android Release does not expose about:config; verify the exact browser channel before following any mobile instruction.