How do I disable Javascript in the stable version of Firefox in Android?


Sometimes I need to disable Javascript on some webpages for various reasons. From a rather old post on Mozilla Support and some other sources, I learned that it is done through about:config.

However, from the answer on this question on SE Android, I learned that about:config is no longer accessible on the stable version of Firefox for Android.

So I am back to the square 1, how do I disable Javascript in Firefox on Android?

I have the following constraints in roughly the order of decreasing concern. Please keep these constraints in consideration while answering the question, but I am still welcome to learn about solutions that violate some of these constraints.

  1. I do not want to use nightly or beta versions. They might have security vulnerabilities or unexpected behavior.

  2. I do not want to change any Firefox configuration files on the file system, unless from within Firefox. I don't know much about Android application and I am afraid I might break something while messing with files.

  3. I do not want to install any add-on on Firefox unless it is opensource or is widely known to be trustworthy.


I do not want to install any add-on on Firefox unless it is opensource or is widely known to be trustworthy.

You're in luck today. Install NoScript Security Suite addon by Giorgio Maone. It is a GNU GPL 2.0 licensed addon. Has more than a decade of history of development, support and trust. It is a "Recommended" extension from Mozilla. It is also bundled with Tor Browser.

As per Firefox Help, meaning of Recommended extension is:

Recommended extensions are editorially curated extensions that meet the highest standards of security, functionality, and user experience. Firefox staff, along with community participation, selects each extension and manually reviews them for security and policy compliance before they receive Recommended status.

Your desired usage of web browser is in contrast to what NoScript offers. As such you need to configure this addon.

As I see it, you want all of your websites to work "with javascript enabled", except a few where you need "javascript disabled". To achieve that, install that addon in your Firefox for Android. Open NoScript page (three-dots line in Firefox status bar -> Addons -> NoScript)

Click on the icon (with a small wrench) next to green colored Reload icon. Below in that page, in "General", under "Default" tick/check all items. This is needed so that websites don't break for you, because this is desirable in your question.

Load the website in your browser where you want javascript disabled. Open Noscript page again. To the website names/entries listed there, press CUSTOM and uncheck/untick script This would disable javascript for the entry/domain you selected.

If you have many websites where you don't want to repeat this procedure, go into Noscript settings, under "Per-site Permissions", add your domains and configure "CUSTOM" settings there.

This is a one-time only effort, but should work for long.


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes