Post Reply 
[Kye-U] Google Ads...
Feb. 19, 2009, 06:13 AM
Post: #5
RE: [Kye-U] Google Ads...
Thanks Wink

I've revised the filter (used $INEST):

Code:
[Patterns]
Name = "Google Search: Remove Ad Blocks     8.08.21 (multi) [sd jd] (d.s) ku#test-20090219"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.google."
Limit = 32704
Match = "<("
        ""
        "("
        "table[^>]++(id=$AV(mbEnd)$SET(#=mbEnd.)|width=(25%$SET(#=width25.)|30%$SET(#=width30.)))"
        "|!-- Strip Me -->$SET(#=strip.)"
        ")"
        "$INEST(<table,</table >)"
        "(*</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]+$SET(#=tpa.)|tads$SET(#=tads.)|side_section$SET(#=side.))$INEST(<div,</div)</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[^<]+<)+|([^<]+</+br+ > )+<)"
        "a href=$AV("
        "/history\?$SET(#=history.)*"
        "|*//(tool(bar|s).|checkout.|desktop.|pack.|survey.|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)\@)"

I don't think the IP expressions in the URL match are needed; it doesn't really hurt to leave them in there, but I think that 99% of the time, users will be on a "www.google." URL.
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[Kye-U] Google Ads... - ProxRocks - Feb. 18, 2009, 02:43 PM
RE: [Kye-U] Google Ads... - Kye-U - Feb. 19, 2009, 05:01 AM
RE: [Kye-U] Google Ads... - sidki3003 - Feb. 19, 2009, 05:51 AM
RE: [Kye-U] Google Ads... - Kye-U - Feb. 19, 2009 06:13 AM
RE: [Kye-U] Google Ads... - sidki3003 - Feb. 19, 2009, 06:27 AM
RE: [Kye-U] Google Ads... - Kye-U - Feb. 19, 2009, 06:31 AM
RE: [Kye-U] Google Ads... - sidki3003 - Feb. 19, 2009, 06:53 AM
RE: [Kye-U] Google Ads... - ProxRocks - Feb. 19, 2009, 09:27 AM
RE: [Kye-U] Google Ads... - sidki3003 - Feb. 19, 2009, 01:22 PM
RE: [Kye-U] Google Ads... - Kye-U - Feb. 21, 2009, 08:07 AM
RE: [Kye-U] Google Ads... - sidki3003 - Feb. 21, 2009, 11:01 AM
RE: [Kye-U] Google Ads... - ProxRocks - Feb. 21, 2009, 12:38 PM
RE: [Kye-U] Google Ads... - sidki3003 - Mar. 03, 2009, 06:40 PM
RE: [Kye-U] Google Ads... - sidki3003 - Mar. 03, 2009, 10:24 PM
RE: [Kye-U] Google Ads... - Kye-U - Mar. 04, 2009, 04:41 AM

Forum Jump: