Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers

up vote 2 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
add comment

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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