Author Topic: Search Engine Silliness  (Read 5752 times)

hpguru

  • Sr. Member
  • ****
  • Posts: 257
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://lightning.prohosting.com/~hpguru/
    • Email
Search Engine Silliness
« on: August 28, 2002, 01:38:38 AM »
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
Facing each other,
a thousand miles apart.

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
Search Engine Silliness
« Reply #1 on: August 28, 2002, 04:47:21 AM »
I messed with the last three.


Name = "Make Teoma Search Links Direct"
Active = TRUE
URL = "s.teoma.com/"
Bounds = "<as*>"
Limit = 600
Match = "1href=$AV(w&u=(^http://[^/]++.teoma.com/*)2)3"
Replace = "<a href="2" class="google" target="_blank">[new window]</a> 1href="2"3"

Name = "Make DogPile Search Links Direct"
Active = TRUE
URL = "search.dogpile.com/"
Bounds = "<p*</p>"
Limit = 800
Match = "*<a*href=$AV(w)*>1</a>*(<br>*<br>)2*<i*>3</i>*"
Replace = "<p><a href="3">1</a> <a href="3" class="google" target="_blank">[new window]</a>"
          "2<small><font color="green">3</font></small></p>"

Name = "Make Lycos Search Links Direct"
Active = TRUE
URL = "(search|hotbot).lycos.com/"
Bounds = "<td*</td>"
Limit = 800
Match = "<as*>1</a>*<DESCRIPTION>2</DESCRIPTION><br>"
        "<font face="verdana" size="-2" color="#999999">3</font>4"
Replace = " <a href="3">1</a> <a href="3" class="google" target="_blank">[new window]</a>"
          "<br><DESCRIPTION>2</DESCRIPTION><br>"
          "<font face="verdana" size="-2" color="#999999">3</font>4"


--------
Infopros Joint :: Computer Related Links And Discussion

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
Search Engine Silliness
« Reply #2 on: August 28, 2002, 04:55:16 AM »
Oh & here's the style for "class=google".


a.google:link
{
  color: #008000; text-decoration : none; font-size: smaller;
}
a.google:hover
{
  text-decoration : underline;
}
a.google:visited
{
  text-decoration : line-through;  color: #008000;
}


I guess I should change it to "class=search", or something.. LoL

--------
Infopros Joint :: Computer Related Links And Discussion

hpguru

  • Sr. Member
  • ****
  • Posts: 257
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://lightning.prohosting.com/~hpguru/
    • Email
Search Engine Silliness
« Reply #3 on: August 28, 2002, 05:25:10 AM »
Where did the description tags come from? I didn't see those when I was there.

Facing each other,
a thousand miles apart.
Facing each other,
a thousand miles apart.

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
Search Engine Silliness
« Reply #4 on: August 28, 2002, 05:38:17 AM »
Whoops.. I tested at "search.lycos.com"... I didn't test at "hotbot.lycos.com".. I changed it b/c it wasn't matching at "search.lycos.com"...

Just tested, neither lycos filter matches at "hotbot.lycos.com" for me..

--------
Infopros Joint :: Computer Related Links And Discussion

Edited by - JD5000 on 28 Aug 2002  06:42:30

hpguru

  • Sr. Member
  • ****
  • Posts: 257
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://lightning.prohosting.com/~hpguru/
    • Email
Search Engine Silliness
« Reply #5 on: August 28, 2002, 06:15:05 AM »
Perhaps another filter you have is matching first because the one I wrote matches at both sites for me. I had to add the (&id=[#1:300]|) to get it to match at search.lycos.com.

Facing each other,
a thousand miles apart.
Facing each other,
a thousand miles apart.

hpguru

  • Sr. Member
  • ****
  • Posts: 257
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://lightning.prohosting.com/~hpguru/
    • Email
Search Engine Silliness
« Reply #6 on: August 28, 2002, 06:30:47 AM »
I made a slight change to the URL match of the "Google Links in New Window" filter so it would still match as you click the Web, Groups or Directory tabs.
I changed "*.google.com/searchw&q=w" to "*.google.com/(search|groups)w?q=w"

Facing each other,
a thousand miles apart.
Facing each other,
a thousand miles apart.

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
Search Engine Silliness
« Reply #7 on: August 28, 2002, 06:43:59 AM »
quote:

Perhaps another filter you have is matching first because the one I wrote matches at both sites for me.


I checked, empty cache, all other filters removed & I still get the prefixed links..

Let me check in IE...

EDIT: No go... I still get the prefixed URL's at hotbot.lycos.com...

--------
Infopros Joint :: Computer Related Links And Discussion

Edited by - JD5000 on 28 Aug 2002  07:47:13

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
Search Engine Silliness
« Reply #8 on: August 28, 2002, 07:11:30 AM »
Let's try this again...

 
Name = "Make Lycos Search Links Direct"
Active = TRUE
URL = "(search|hotbot).lycos.com"
Bounds = "<as*</a>"
Limit = 800
Match = "1href=$AV(*target=2&*)3"
Replace = "1href=$UESC(2)3 <a href=$UESC(2) target="_blank" class="google" >[new window]</a>"


The match should be.. *target=2& amp* Minus the space between "&" and "amp"..

--------
Infopros Joint :: Computer Related Links And Discussion

hpguru

  • Sr. Member
  • ****
  • Posts: 257
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://lightning.prohosting.com/~hpguru/
    • Email
Search Engine Silliness
« Reply #9 on: August 28, 2002, 07:33:13 AM »
Oh ok I see the problem. The forum software rendered the & amp. Here are the filters zipped.


Attachment: searchsilly.zip 1,12 KB

Facing each other,
a thousand miles apart.



Edited by - hpguru on 30 Aug 2002  23:54:49
Facing each other,
a thousand miles apart.

hpguru

  • Sr. Member
  • ****
  • Posts: 257
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://lightning.prohosting.com/~hpguru/
    • Email
Search Engine Silliness
« Reply #10 on: August 30, 2002, 10:59:27 PM »
I made a few changes to the "Google Links in New Window" filter to fix an issue where it failed to match the url. The zipped config in my previous post has been updated.

 

Name = "Google Links in New Window"
Active = TRUE
URL = "*.google.com/(search|groups)wq=w"
Bounds = "$NEST(<p*>*,<as*/a>)"
Limit = 400
Match = "(<a*shref=$AV(w)*)1>2</a>"
Replace = "1>2</a><br>1 target="_blank">"
          "<strong>[Open in a New Window]</strong></a>"



Facing each other,
a thousand miles apart.
Facing each other,
a thousand miles apart.