Old Proxomitron Forums

Proxomitron Filters - Discussions welcome => Cosmetic => Topic started by: Arne on April 20, 2002, 08:48:05 AM

Title: Add Domain to Title
Post by: Arne 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
Title: Add Domain to Title
Post by: Jor on April 20, 2002, 03:38:52 PM
Sweet!

This is a permanent addition to my filterset

 
Title: Add Domain to Title
Post by: Jor 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 .