Block inline scripts from executing?

by TenLeftFingers   Last Updated July 29, 2016 08:01 AM

I need to test a page with no scripts running/executing. I've tried NoScript and uBlock but they seem to only stop externally linked scripts from being executed, not those in ... tags.

Any suggestions how I can achieve this from the browser?



Answers 2


Just turn of JavaScript in your browser.

Disable JavaScript in Chrome:

  • Click the Chrome menu Chrome menu in the top right hand corner of your browser
  • Select Settings
  • Click Show advanced settings
  • Under the "Privacy" section, click the Content settings button.
  • In the "Javascript" section, select "Do not allow any site to run JavaScript" or "Allow all sites to run JavaScript (recommended)"

Disable JavaScript in Firefox:

  • In Firefox's address bar, type about:config and press Enter.
  • Click I'll be careful, I promise! button.
  • In the search bar, search for javascript.enabled.
  • Double click on the row of preference named javascript.enabled to change the value to False. ...
  • JavaScript is now disabled.

Disable JavaScript in Internet Explorer:

  • Select the Gear in the upper-right corner of the screen or the “Tools” menu if you have the menu bar enabled, then select “Internet Options“.
  • Select the “Security” tab.
  • Select the zone you wish to modify. In most cases, it will be “Internet“.
  • Select the “Custom level…” button.
  • Scroll down to the “Scripting” area and select the radio button to “Enable” or “Disable” it “Active scripting“. You may also opt for IE11 to “Prompt” you to allow scripts to run.
  • Select “OK“, then “OK” again.

Disable JavaScript in Edge:

  • Launch the Edit Group Policy program.
  • Expand the User Configuration folder.
  • Expand the Administrative Templates folder.
  • Expand the Windows Components folder.
  • Expand the Microsoft Edge folder.
  • Double-click Allows you to run scripts, like Javascript.
  • Choose Disabled, and click Ok to confirm.
John Conde
John Conde
July 29, 2016 01:37 AM

The Firefox add-on NoScript should be able to block all JavaScript, including the JS included in the current page.

Just make sure that you don’t enable the setting that the current page is always allowed to run JS (it’s the first setting in the first tab).

unor
unor
July 29, 2016 02:46 AM

Related Questions


Adding check boxes into an html web page

Updated August 02, 2017 21:04 PM


Limiting new releases to small groups

Updated June 08, 2016 08:01 AM

Detect if browser is active

Updated January 07, 2017 08:01 AM

Auto open fullscreen on another monitor

Updated January 27, 2017 14:01 PM