Author Topic: Add Domain to Title  (Read 2977 times)

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Add Domain to Title
« on: April 20, 2002, 08:48:05 AM »
The problem was that when someone makes a link like this:
<a href="http://www.domain.com/a.html" title="click here">LINK</a>

Oprea useres did not see the URL. This filter will change these links to:

<a href="http://www.domain.com/a.html" title="click here at domain.com">LINK</a>

[Patterns]
Name = "Add Domain to Title, civ"
Active = TRUE
Bounds = "<a*>"
Limit = 256
Match = "(<ashref=$AV((w://|)(www.|)([^.|..]w.*)/*)*)1title=$AV(2)(*)3>"
Replace = "1title="2 at "3>"


Best wishes
Arne
Imici username: Arne
Best wishes
Arne
Imici username= Arne

Jor

  • Moderator
  • Sr. Member
  • *****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Add Domain to Title
« Reply #1 on: April 20, 2002, 03:38:52 PM »
Sweet!

This is a permanent addition to my filterset

 
 

Jor

  • Moderator
  • Sr. Member
  • *****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Add Domain to Title
« Reply #2 on: April 24, 2002, 10:12:40 PM »
A small change to this filter:
Name = "Add Domain to Title"
Active = TRUE
Multi = TRUE
Bounds = "<a*>"
Limit = 256
Match = "(<ashref=$AV((w://|)([^/]++)([^.|..]w.*)/*)*)1title=$AV(2)(*)3>"
Replace = "1 title="2 (@ )" 3>"
Now it will also catch external links that do not link to domain.com or www.domain.com (for example members.domain.com).

Also, I allowed Multi-matching for this filter, so it'll still allow other filters to effect this link.

The usage of (@ ) is my personal preference over the standard at .