2011-01-18, 03:36 PM
In addition to my tutorial Adding nofollow to outgoing links here is another MyCode hack.
This MyCode will remove all URLs in posts/signatures/pm you don't like.
Title
Regular Expression
Replacement
This is just an example and will block:
To modify the blacklist edit this:
www\.example\.com|example\.com|www\.google\.com
The pipe stays for an OR and you have to add a backslash before every dot.
If you just want to remove the 'clickable effect' use this replacement:
This MyCode will remove all URLs in posts/signatures/pm you don't like.
Title
URL Blacklist
Regular Expression
<a href="http([s]?)://(www\.example\.com|example\.com|www\.google\.com)(.*?)" (.*?)>(.*?)</a>
Replacement
<span style="font-style: italic; color: rgb(255, 0, 0)">URL removed</span>
This is just an example and will block:
www.example.com
example.com
www.google.com
To modify the blacklist edit this:
www\.example\.com|example\.com|www\.google\.com
The pipe stays for an OR and you have to add a backslash before every dot.
If you just want to remove the 'clickable effect' use this replacement:
http$1://$2$3