Way to disable a specific JS script from a specific website

browserjavascript

I want to disable a specific JS script from a specific website without disabling the javascript completely. Is there a way to do that ?

Best Answer

(Reference: http://noscript.net/faq#qa8_10)

After installing NoScript, open its option (by opening context menu on the small icon on the status bar/add-on bar, or through Addons Manager)

Go to Advanced tab. In that page, go to ABE tab. Under Rulesets, click on USER. Here is an example ruleset, put it in the textbox on the right:

# User-defined rules. Feel free to experiment here.
Site http://res.nimg.jp/js/ads.js*
Deny

I'm not sure how URL matching works, whether it uses regexp or not. Some examples on the FAQ does show regexp usage, but my example above seems to also match ads.js?foobarbaz.

Related Question