Page 1 of 1

Filter syntax issue

Posted: Tue Jul 14, 2009 2:00 am
by HeffeD
What is the proper way to exclude domains from a third party script filter?

I've been using the filter Wladimir has suggested to deal with third party scripts,

Code: Select all

*$script,third-party
Although I can't remember where I read about that, I've been very happy with the results, but there is a domain or two that I'd like to exempt from the filter. I don't want to just whitelist the domain because I'd still like certain filters to function.

I've tried

Code: Select all

*$script,third-party$domain=~URL
and

Code: Select all

*$script,third-party$domain=~URL
The first one seems to not function at all, and the second does seem to function, but appears to also allow third party scripts to run on some domains other than the one specified in the filter. So I'm obviously doing something wrong, but I don't know what.

Any help would be appreciated!

Posted: Tue Jul 14, 2009 4:38 pm
by Wladimir Palant

Code: Select all

*$script,third-party,domain=~example.com
Note that in Adblock Plus 1.1 you can right-click a blocked script in the list of blockable items and choose "Disable this filter on example.com" from the context menu - it will add the domain option automatically.

Posted: Tue Jul 14, 2009 10:11 pm
by HeffeD
Thanks Wladimir!

And the right click functionality sure makes things easy. I hadn't noticed that change. :)