This code does NOT support url's starting with https:
If I change the http to https in the code below, then it does not support the first one
I'm NO coder. Will appreciate if someone could help me out. Need support for all url's
If I change the http to https in the code below, then it does not support the first one
I'm NO coder. Will appreciate if someone could help me out. Need support for all url's
Code:
$(function() {
var sickw = /^http:\/\/(fileparadox|uploadable|terafile|filefactory|uploadable|ul|ryushare|bitshare|turbobit|secureupload|rapidgator|uploaded|k2s|netload|www.fileparadox|www.uploadable.ch|www.terafile.co|www.filefactory|www.uploadable|www.ul|www.ryushare|www.bitshare|www.turbobit|www.secureupload|www.rapidgator|www.uploaded|www.k2s.cc|www.netload)\.[\S]+$/;
$('body *').contents().filter(function() {
return this.nodeType == 3 &&
$(this).text().trim() !== '' &&
$(this).text().trim().match(sickw);
}).each(function() {
$(this).replaceWith('<a href="' + $(this).text().trim() + '"target="_blank" rel="sickw.com">' + $(this).text().trim() + '</a>');
});
});