Using AND with $domain option

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey

Using AND with $domain option

Postby ainkami » Mon Feb 16, 2009 5:28 am

I want to make an exception filter for google image search.

My current exception filter:
@@|http://tbn*.google.com/images$image,domain=images.google.com

This filter allows thumbnail loading if a link points to an image file OR if it is called from images.google.com. How do I make it only load links if it is an image AND it is called form images.google.com?

If there is no support for it in the current ABP version, can support be added in future version please?
ainkami
 
Posts: 7
Joined: Wed Dec 12, 2007 2:53 am

Postby asdf » Mon Feb 16, 2009 5:52 am

If the whitelist filter you're using allows third-party images you don't want, then you just need to whitelist first-party images. That is not-third-party.

Code: Select all
@@|http://tbn*.google.com/images$image,~third-party,domain=images.google.com


Or you could leave that filter alone and use

Code: Select all
*$image,third-party,domain=images.google.com


to blacklist eternal images only while you're doing a google image search.
asdf
 

Re: Using AND with $domain option

Postby Adblock Plus Fan » Mon Feb 16, 2009 6:18 am

ainkami wrote:This filter allows thumbnail loading if a link points to an image file OR if it is called from images.google.com.
It actually already is an "AND". Any additional filter options added works as additional condition.


I think the part that has you confused is how $domain works when it comes to frames. Wladimir explains how it works here: http://adblockplus.org/forum/viewtopic.php?t=3269

Basically your whitelist filter will work on any domain if it's invoked from an images.google.com frame. The $domain feature isn't quite as site specific as most people might think unfortunately.
User avatar
Adblock Plus Fan
 
Posts: 1255
Joined: Sat Feb 24, 2007 12:08 pm

Re: Using AND with $domain option

Postby grigorianz » Mon Mar 14, 2011 1:55 pm

That code @@|http://tbn*.google.com/images$image,~third-party,domain=images.google.com
works perfectly.
grigorianz
 
Posts: 1
Joined: Mon Mar 14, 2011 1:45 pm


Return to Adblock Plus for Firefox support

Who is online

Users browsing this forum: ssialniy and 14 guests