Firefox plugin to block scripts of only specified websites

4

2

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.

user23392

Posted 2010-01-28T04:37:38.243

Reputation: 459

1By 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 – 2010-01-28T12:49:28.720

Answers

4

  • 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.

Anonymous

Posted 2010-01-28T04:37:38.243

Reputation: 1 214

+1 for AdBlock Plus. You can block pretty much anything using filters. – Paul Lammertsma – 2010-01-28T12:39:55.513

1

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 – 2015-09-10T11:14:01.790

1

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

Kelbizzle

Posted 2010-01-28T04:37:38.243

Reputation: 1 808

If you don't like no script. This https://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 – 2010-01-28T04:58:48.553

1

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

Nate

Posted 2010-01-28T04:37:38.243

Reputation: 11