I love using Google Chrome, but I don't like visiting sites that have embedded ads/pages that could have malicious JavaScript. Is there something like the Firefox extension, NoScript, for Google Chrome?

  • Out of curiosity, do you by default disable scripting on all websites? How does that impact your browsing experience? – Paul Lammertsma Aug 7 '10 at 20:49
  • @PaulLammertsma - Sometimes some scripts have to be enabled for functionality but overall, much cleaner and marketing-BS-free. – Enigma Jan 10 '14 at 19:11

Check out Privoxy. Lifehacker has a great guide on how to set it up.

Privoxy supports stripping ads, Javascript and nasty pieces of HTML, as well as string-replacement for any web browser. I have used it in the past and I did not notice a speed difference.

| improve this answer | |
  • 2
    This fails to answer the question, which is no, there is no proper extension support for Chrome. – PP. Jan 21 '10 at 17:35
  • 4
    At the time of writing, there was no extension support for Chrome, so this was, IMO, the best way to achieve similar functionality. This answer was found to solve the problem that Steve Wright was having, so it DOES answer the question. – Josh Hunt Jan 23 '10 at 8:21
  • 1
    As of now, there is HTTP Switchboard (Chrome store or on github). – rhill Nov 9 '13 at 16:01

ScriptSafe has come out recently, and beats NotScripts.

A simple extension that brings some of NoScript's functionality to Chrome while emphasizing simplicity and intuitiveness (no affiliation to NoScript):

  • whitelisting/blacklisting functionality and granular control
  • actually speeds up browsing because it removes a lot of unwanted content
  • ability to remove <SCRIPT>, <OBJECT>, <EMBED>, <IFRAME>, <FRAME>, <APPLET>, <AUDIO>, <VIDEO>, <NOSCRIPT>, and <IMG> elements, as well as webbugs
  • ability to block unwanted content (MVPS HOSTS, hpHOSTS (ad / tracking servers only), Peter Lowe's HOSTS Project, MalwareDomainList.com, and DNS-BH – Malware Domain Blocklist are integrated!)
  • ability to block click-through referrer data
  • "intuitive" icon that changes based on whether or not a page is whitelisted/blacklisted/bypassed
  • shows number of blocked/removed items in toolbar
  • shows blocked/allowed items in tab details popup (along with item type)
  • bulk import domains into whitelist and blacklist
  • option to temporarily allow a page/temporarily allow all blocked items
  • choose the default mode (Block All or Allow All)
  • option to preserve same-domain elements
  • option to disable automatic refresh of pages after whitelisting/blacklisting/temp. bypassing a page

EDIT: It now takes advantage of the new Content Blocking API in Chrome 17 to block accurately and very, very fast. The above feature set is old, BTW, but I can't be bothered to update it. ;)

| improve this answer | |

Something a little different from NoScript but may be of interest: HTTP Switchboard allows you to block resources from loading, based on their URL and content-type. (Github repository)

Update: HTTP Switchboard has been replaced by uMatrix (advanced) and uBlock Origin (simple). Thanks to Quinn Comendant for the links.

enter image description here

I found it in this answer

Alternatively, to blacklist known trackers and widgets, you can try Ghostery. But that does not address the OP's desire, which was to block all Javascript until whitelisted.

| improve this answer | |
  • 1
    This plugin is just pure awesomeness. – dvdgsng Sep 19 '14 at 11:41
  • 1
    this plugin has now been split into umatrix and ublock – cobaco Dec 16 '14 at 21:49

Check out the response from the NoScript developer as to why NoScript has not been ported to Chrome:

The reason is very simple: Chrome is still lacking the required infrastructure for selective script disablement and object blocking.

As a result, you can either block ads or turn off all scripting/plugins - there is no way to white list some sites for scripting/plugins and block others.

| improve this answer | |

There's a great extension called NotScripts that is based on FF NoScripts

| improve this answer | |

You can use a startup parameter for your shortcut to block java, java script, images, and plugins by appending one of the following to the end of your google chrome shortcut:

Java : "-disable-java"

Java script : "-disable-javascript"

Plugins : "-disable-plugins"

Images : "-disable-images"

Taken from Lifehacker here.

| improve this answer | |
  • Outdated. New mechanisms have come out in the Settings/Options menu. – Mateen Ulhaq Oct 14 '11 at 7:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.