Is there a NoScript alternative for Google Chrome?

51

18

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?

Steve Wright

Posted 2009-07-19T02:18:55.740

Reputation: 625

Out of curiosity, do you by default disable scripting on all websites? How does that impact your browsing experience? – Paul Lammertsma – 2010-08-07T20:49:00.007

@PaulLammertsma - Sometimes some scripts have to be enabled for functionality but overall, much cleaner and marketing-BS-free. – Enigma – 2014-01-10T19:11:29.230

Answers

20

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.

Josh Hunt

Posted 2009-07-19T02:18:55.740

Reputation: 20 095

2This fails to answer the question, which is no, there is no proper extension support for Chrome. – PP. – 2010-01-21T17:35:33.903

4At 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 – 2010-01-23T08:21:03.983

1

As of now, there is HTTP Switchboard (Chrome store or on github).

– rhill – 2013-11-09T16:01:16.243

21

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. ;)

Mateen Ulhaq

Posted 2009-07-19T02:18:55.740

Reputation: 3 207

10

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.

joeytwiddle

Posted 2009-07-19T02:18:55.740

Reputation: 1 346

1This plugin is just pure awesomeness. – dvdgsng – 2014-09-19T11:41:34.030

1this plugin has now been split into umatrix and ublock – cobaco – 2014-12-16T21:49:40.560

8

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

Rafal

Posted 2009-07-19T02:18:55.740

Reputation: 160

8

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.

David Beckman

Posted 2009-07-19T02:18:55.740

Reputation: 819

6

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.

MESLewis

Posted 2009-07-19T02:18:55.740

Reputation: 611

Outdated. New mechanisms have come out in the Settings/Options menu. – Mateen Ulhaq – 2011-10-14T07:50:15.263