Results 1 to 10 of 316
Threaded View
-
7th Apr 2011, 12:45 PM #11Member
See here:
http://www.besthostingforums.com/sho...187#post755187
The code you're using is terrible, bloated and inefficient (no offence meant).
Copypasted for lazy people:
Code:$(function() { var sexyregex = /^http:\/\/(hotfile\.com|rapidshare\.com|megaupload\.com)\/[\S]+$/; $('body *').contents().filter(function() { return this.nodeType == 3 && $(this).text().trim() !== '' && $(this).text().trim().match(sexyregex); }).each(function() { $(this).replaceWith('<a href="' + $(this).text().trim() + '" target="_blank" rel="bitches_dont_know_bout_my_regex">' + $(this).text().trim() + '</a>'); }); });
Want to add more hosts? just alter the regex.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Make the links under BBcode clickable?
By PlusOne in forum vBulletinReplies: 1Last Post: 26th Apr 2011, 06:06 PM -
Make download links clickable (Hotfile/FileServe) in vBulletin
By Rapid4All in forum vBulletinReplies: 40Last Post: 5th Mar 2011, 10:30 PM -
Make links clickable.
By happyvalentine in forum Technical Help Desk SupportReplies: 3Last Post: 17th Feb 2011, 11:49 AM -
How to make Clickable Hf Links?
By Itkraze in forum vBulletinReplies: 2Last Post: 10th Feb 2011, 02:52 PM -
[Hiring] Make Links Clickable
By Dj Mad in forum Completed TransactionsReplies: 0Last Post: 28th Jul 2010, 12:46 AM
themaCreator - create posts from...
Version 3.45 released. Open older version (or...