Allow third party site only for one domain

Ask for help about NoScript, no registration needed to post
noz

Allow third party site only for one domain

Post by noz »

Hello,

Instead of a lousy explanation here is an example: I'd like to allow javascript for gstatic.com only when I'm browsing maps.google.com
Is there a way to add this to the whitelist?

For example, in adblock the filter would be "@@gstatic.com$domain=maps.google.com"

Thanks
Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Allow third party site only for one domain

Post by therube »

I believe this is it, & I don't really understand all the workings, & if something should be in SYSTEM or USER, but ...

Allow gstatic.com (into NoScript's whitelist).

Then in ABE, SYSTEM

Code: Select all

Site gstatic.com
Accept from maps.google.com
Deny
Note that the Allow is a "global" allow, if you will, but its' scope is limited to only maps.google.com by ABE.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8pre) Gecko/20100114 SeaMonkey/2.0.3pre
noz

Re: Allow third party site only for one domain

Post by noz »

Thanks a lot therube, it's working (as a USER rule in ABE).
Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
Post Reply