Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a Firefox plugin that blocks JavaScript from specified URLs.

Example:

  • I add: "google-analytics.com"
  • It then blocks all scripts coming from Google Analytics.

Essentially a blacklist of sites that I don't want to allow JavaScript from.

Note: I know of NoScript which blocks all scripts from all websites. But I don't want that.

share|improve this question
1  
By the way, you're asking for an "extension", which interacts with Firefox's or one of its siblings' or a XULRunner application's internals to "extend" its functionality, and named such to reduce confusion with plugins. A web "plugin" is a de-facto cross-browser technology whereby a page "plugs in" a window controlled by a separate binary, like Flash or Java or a media player. – Anonymous Jan 28 '10 at 12:49
up vote 4 down vote accepted
  • NoScript is a common solution. It uses whitelisting by default -- but as Kelbizzle notes, supports blacklisting -- and also helps with vulnerabilities related to XSS.

  • YesScript is a blacklist-only alternative to the tangled code of NoScript.

  • AdBlock Plus's filter options can also solve this: google-analytics.com$script. This is my choice because it makes managing and copying filter rules extremely easy.

  • RequestPolicy allows you to block third-party resources, including script. This is a whitelist with a a few useful temporary or permanent "allow all" options, and it doesn't differentiate between type of resource like ABP does.

  • Karma Blocker is a resource blocker that is apparently as powerful as ABP, but it requires more thought to configure than the other options.

share|improve this answer
    
+1 for AdBlock Plus. You can block pretty much anything using filters. – Paul Lammertsma Jan 28 '10 at 12:39
    
Anothing awesome lightweight blocker is uBlock Origin - it is by far the most resource friendly blocker, with a support for blocking requests based on AdBlock Plus filters + third party assests blocking (such as scripts and frames), highly recommended. – Mike Sep 10 '15 at 11:14

No script is what you want. It has a Blacklist feature.

share|improve this answer
    
If you don't like no script. This addons.mozilla.org/en-US/firefox/addon/4922 may be exactly what you're looking for. It blocks javascript from only the sites you tell it. – Kelbizzle Jan 28 '10 at 4:58

I use Blocksite. It allows the use of wildcards so you can add something like "http*google-analytics.com*".

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .