Here's some filters I wrote for a few popular search engines. Suggestions for improvement welcome. Especially to combine the Google AdWords filters into one.
Name = "Google Links in New Window"
Active = TRUE
URL = "*.google.com/(search|groups)w?q=w"
Bounds = "$NEST(<p*>*,<as*/a>)"
Limit = 300
Match = " (<a*shref=$AV(w)*)1>2</a>"
Replace = " 1>2</a><br>1 target="_blank">[Open in a New Window]</a>"
Name = "Kill Google Adwords I"
Active = TRUE
URL = "[^/]++.google.com/"
Bounds = "$NEST(<tables*,</table>)"
Limit = 2048
Match = "*(sponsoredslink|Interest:s<img)*"
Name = "Kill Google Adwords II"
Active = TRUE
URL = "[^/]++.google.com/"
Bounds = "$NEST(<as*,</a>)"
Limit = 300
Match = "*shref=wadwords.google.comw*"
Name = "Make DogPile Search Links Direct"
Active = TRUE
URL = "search.dogpile.com"
Bounds = "$NEST(<p*>,</p>)"
Limit = 800
Match = "*<a*href=$AV(w)*>1</a>*(<br>*<br>)2*<i*>3</i>*"
Replace = "<p><a href="3">1</a>2<a href="3" target="_blank">"
"<strong>Open in a new window: </strong>1</a></p>"
Name = "Make Teoma Search Links Direct"
Active = TRUE
URL = "s.teoma.com"
Bounds = "<as*>"
Limit = 600
Match = "1href=$AV(w&u=2)3"
Replace = "1href="2"3"
Name = "Make Lycos Search Links Direct"
Active = TRUE
URL = "(search|hotbot).lycos.com"
Bounds = "<as*>"
Limit = 400
Match = "1href=$AV(wtarget=2(&id=[#1:300]|)&query=w)3"
Replace = "1href="$UESC(2)"3"
Facing each other,
a thousand miles apart.
Edited by - hpguru on 28 Aug 2002 06:25:51
Edited by - hpguru on 28 Aug 2002 07:26:48