Skip to content

Block or Enable JavaScript in Chrome browser on Android

Are you looking to manage JavaScript execution in Google Chrome on your Android? Learn how to block or enable the JavaScript option.

JavaScript is a scripting language that is used by most modern websites. However, hackers can misuse it to inject the script, leading to scams. Hence it is good to block JavaScript when visiting an unsecured site. Chrome for Android allows configuring to enable or block the JS execution for all sites or add exceptions for restricting specific sites.

Configure JavaScript Execution on Chrome browser

JavaScript is one of the front-end scripting languages, along with HTML and CSS, that are mainly used for website development and design. One advantage of using JavaScript is making the website interactive and creative. But, it can be misused for hacking your data. Hence, you can block JavaScript completely.

JavaScript has different types of libraries that can be molded and used for great designs and structures. Though JavaScript is quite helpful for most web developers, some can misuse it for hacking.

Using JavaScript as a hacker can inject code into our browser, making it vulnerable to data loss, fraud payments, and privacy invasion. Hence, few people prefer to keep JS blocked on Chrome Android.

I prefer to keep the javascript disabled for most of the websites. However, when any website is misbehaving, then I allow it. Therefore, the chances of getting a browser hacked are reduced to a greater extent.

Block JavaScript Execution

JavaScript is enabled for all the sites by default unless you’ve changed it. But, if you want to block or disable JavaScript, you can do it easily in Chrome Android. Here are the steps to do:

  1. Launch the Chrome app on Android phones.
  2. Tap on the More vertical 3dots icon menu for options.
  3. Select Settings from the list.
  4. Scroll down to the Site Settings option and tap to open.
  5. Tap on the JavaScript tab, which is default set to Allowed.
    Chrome Android JavaScript Blocked
  6. Toggle the button to Turn OFF and Block the JavaScript on Chrome Android.

It will completely block the JavaScript loading from the websites on your Chrome browser. However, in the ideal online world, blocking JavaScript is not preferred. This will screw up the entire website design, and you may show plain text only.

Configure JavaScript with Site Exception

Configuring JavaScript to allow or block certain allowed websites is possible with the site exceptions option. Follow these steps to enable JavaScript exceptions on Chrome Android:

  1. Launch the Chrome browser on Android.
  2. Tap on the More vertical 3dots icon menu for options and select Settings from the list.
  3. Scroll down to the Site Settings option and tap to open.
  4. Tap on the JavaScript tab, which is default set to Allowed.
  5. Tap on the command + Add site exception on the JavaScript settings page
  6. Enter the website URL you add to the exceptions list in the window.
    Add site exception for JavaScript on Chrome Android
  7. Tap on the Add command button to commit the changes.

The exception will behave based on your JavaScript settings — Allowed or Blocked.

If you add any website to the site exception list, the behavior is inversed by the setting of the JavaScript toggle. i.e.

  • if you have Allowed JavaScript, then site exceptions will be blocked, and
  • if you have Blocked JavaScript, then site exceptions will be allowed to load JS in Chrome.

Video Guide

Watch the video tutorial on enabling or blocking JavaScript on Chrome for Android. You can add site exceptions to block or allow JavaScript.

How to Block or Enable JavaScript on Chrome Android?

Bottom Line

You can completely customize the javascript execution on Android smartphones. You can enable or disable execution for any website per need. The exceptions in the javascript settings page make it highly efficient on the web browser.

I have used this feature extensively after the time I discovered it. I blocked this feature for almost all the websites, so I don’t give in to the hacking tactics developers employ. However, sites needed access to JavaScript for their proper functioning.

Similarly, you can configure JavaScript on a Chrome computer. The site exceptions feature is also available in the computer browser.

What is your setting for JavaScript on your Chrome browser? Did you disable JS on all sites or enable it on Chrome Android?

Lastly, if you've any thoughts or feedback, then feel free to drop in below comment box. You can also report the outdated information.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases; of course at no extra cost to you (indeed, you may get special discounts).
Kushal Azza

Kushal Azza

Kushal Azza is a Google Certified IT Professional, Digital Content Creator, and Go-To Digital Marketer. He has over a decade of experience solving tech problems, troubleshooting, and creating digital solutions. Follow him on Twitter and LinkedIn.

Leave a thought or feedback

Please leave a descriptive comment or feedback with your real name. Our human moderator vets every comment, and it may take 24 to 48 hours to get published or rejected.

Your email address will not be published, and we will never spam your inbox. Required fields are marked *