Post Reply 
New: Google Images - Remove Ad Block
Apr. 05, 2009, 02:37 AM (This post was last modified: Apr. 05, 2009 02:44 AM by Kye-U.)
Post: #1
New: Google Images - Remove Ad Block
Found some time to write a filter for an ad block I found on Google Images. Apparently the ad block appears on popular search items (like Edward Cullen), and only on the first page.

Code:
[Patterns]
Name = "Google Images: Remove Ad Blocks     x.xx.xx [sd ku] (d.s) WIP1"
Active = TRUE
URL = "$TYPE(htm)images.google."
Limit = 2500
Match = "<table width="100%" cellpadding=0 cellspacing=0>$INEST(<table,</table>)</table>"
Replace = "\r\n<!-- PROX-S: Removed by Google Images Ad Block Filter (gimg.ad) -->\r\n"
          "$SET(sSpec=$GET(sSpec)gimg.ad)"

Test: http://images.google.com/images?gbv=1&hl...&oq=edward
Visit this user's website
Add Thank You Quote this message in a reply
Apr. 05, 2009, 06:38 PM
Post: #2
RE: New: Google Images - Remove Ad Block
I don't see it here. Firefox, with German and US IP address.
Are you still getting the non-JS version (where "Google Images: Direct Links" matches)?
Add Thank You Quote this message in a reply
Apr. 05, 2009, 06:41 PM
Post: #3
RE: New: Google Images - Remove Ad Block
Yup, I am! Might be a Canada-only problem...

Attached is the source code of the page.


Attached File(s)
.txt  googimg.txt (Size: 33.83 KB / Downloads: 687)
Visit this user's website
Add Thank You Quote this message in a reply
Apr. 05, 2009, 06:51 PM
Post: #4
RE: New: Google Images - Remove Ad Block
I see... If you add...
Code:
images.google.$SET(sAdKey=.wia.)
...to AdKeys-S, does the table collapse for you?
Add Thank You Quote this message in a reply
Apr. 05, 2009, 07:32 PM
Post: #5
RE: New: Google Images - Remove Ad Block
(Apr. 05, 2009 06:38 PM)sidki3003 Wrote:  I don't see it here.

me neither...
Add Thank You Quote this message in a reply
Apr. 05, 2009, 07:34 PM
Post: #6
RE: New: Google Images - Remove Ad Block
(Apr. 05, 2009 06:41 PM)Kye-U Wrote:  Attached is the source code of the page.

um, that attachment link opened a Google Image Search for me, it did not open a .txt file as i was expecting it too...
Add Thank You Quote this message in a reply
Apr. 05, 2009, 08:10 PM
Post: #7
RE: New: Google Images - Remove Ad Block
(Apr. 05, 2009 06:51 PM)sidki3003 Wrote:  I see... If you add...
Code:
images.google.$SET(sAdKey=.wia.)
...to AdKeys-S, does the table collapse for you?

Yup! That works fine Smile!
Visit this user's website
Add Thank You Quote this message in a reply
Apr. 05, 2009, 08:38 PM (This post was last modified: Apr. 05, 2009 08:42 PM by sidki3003.)
Post: #8
RE: New: Google Images - Remove Ad Block
(Apr. 05, 2009 07:34 PM)ProxRocks Wrote:  um, that attachment link opened a Google Image Search for me, it did not open a .txt file as i was expecting it too...

IE is content sniffing text/plain documents and, if they contain HTML, renders them. Now, that attachment contains HTML, as well as a script saying "if you are a recent browser, then request my JS enhanced version (over at Google)".

That's probably what you're seeing. If that document had come from a Google server instead of prxbx.com, the script would be blocked by the config.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: