Post Reply 
Google Books/Groups: Remove Ad Blocks
Jan. 17, 2009, 09:35 AM
Post: #4
RE: Google Books/Groups: Remove Ad Blocks
Added. One little change: $AV(adt|rhssection&\1) . (In contrast to JS, "|" is more sticky than "&".)

Code:
[Patterns]
Name = "Google Books/Groups: Remove Ad Blocks     9.01.17 [jd ku sd] (d.s)"
Active = TRUE
URL = "$TYPE(htm)(books|groups).google."
Limit = 32766
Match = "<table\s[^>]++id=$AV(adt|rhssection&\1)"
        "("
        "$INEST(<table,</table)</table >"
        "|$SET(0=<table style="display:none">)*>"
        ")"
Replace = "\r\n<!-- PROX-S: Removed by Google Books/Groups Filter (\1) -->\r\n\0"
          "$SET(sSpec=$GET(sSpec)\1)"

And thanks for the test links. Smile!
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Google Books/Groups: Remove Ad Blocks - sidki3003 - Jan. 17, 2009 09:35 AM

Forum Jump: