Jul. 12, 2008, 04:20 PM
I noticed CastleCops is currently down, so I've decided to post the same topic I posted over at CC here.
The Sponsored Ads block started re-appearing on Google Search a few weeks ago; this updated filter should remove it once again (note: this filter has been updated, see post #8):
If you notice that a filter isn't working, or if you have made an update to a filter, post in this thread
The Sponsored Ads block started re-appearing on Google Search a few weeks ago; this updated filter should remove it once again (note: this filter has been updated, see post #8):
Code:
[Patterns]
Name = "Google Search: Remove Ad Blocks 7.08.08 (multi) [sd jd] (d.s) [unoff]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)(www.google|64.233.1[#60:91]|66.(102.[#0:15]|249.[#64:95])|72.14.[#192:255]|216.239.[#32:63])."
Limit = 32704
Match = "<("
""
"(table[^>]++(width=30%$SET(#=width.)|height=40$SET(#=height.))|!-- Strip Me -->$SET(#=strip.))"
"(*</table >(^ [^<]| <table)|*(????????)\2(^?)$SET(0= <!-- Strip Me -->\2))"
""
"|div("
" style=[^>]+> <font$INEST(<div,*href=$AV(/history\?*)$SET(#=history-d.)*,</div)</div >"
"|[^>]++id=$AV(tpa[0-9]+)$INEST(<div,</div)</div >$SET(#=ad-div.)"
" (<div[^>]++id=$AV(tpa[0-9]+)$INEST(<div,</div)</div >$SET(#=ad-div.) )+"
")"
"|table ("
"cellpadding=0 cellspacing=0 border=0> <tr> <td valign[^>]+>( <font[^>]+>)+{2}([a-z]+ :)\#"
"$INEST(<table,</table)</table >"
"|[^>]+> <tr> <td (^class)[^>]+> <(/td > <td[^<]+<|)(/+font[^<]+<)+a href="
"$AV(/history\?$SET(#=history.)*|*//(tool(bar|s).|checkout.|desktop.|pack.|webaccelerator.)\#google.*)"
"$INEST(<table,</table)</table >( <br*>|)"
"|[^>]++width=$AV(100%) style=$AV(border: 1px solid*)$INEST(<table,</table)</table >$SET(#=custom-ad.)"
")"
"|center> <font"
"$INEST(<center,*//(tool(bar|s).|checkout.|desktop.|pack.|webaccelerator.)\#google.*,</center)"
"</center >( <(br|p)>)+"
"|td rowspan=[#2] > <a\s[^>/]+//(tool(bar|s)|checkout|desktop|pack|webaccelerator)\#.google."
"$INEST(<td,</td)</td > </tr > <tr> $NEST(<td,</td >)$SET(#= td.)"
"|p>( <font[^>]+>)+[^<]+<a\s[^>/]+//(books.)\#google.[^<]+</a >( </font >)+ <br>"
"(^(^<br clear=all>|<table))"
""
")"
Replace = "\r\n<!-- PROX-S: Removed by Google Ad Links Filter (\@) -->\r\n\0"
"$SET(sSpec=$GET(sSpec)\@)"If you notice that a filter isn't working, or if you have made an update to a filter, post in this thread
