hello i have find that Script somewhere on the internet for forumotion to replace any image link by
%27%20+%20link.href%20+%20%27
i tried
link.href
but failed i tried *.* failed too so is there a way to fix it
im also thinking about making a Script to replace youtube links to show the vedio insted of vedio link like the image replacer
- Code:
[img]the image link[/img]
- Code:
$(function() {
var links = $('.postbody a', document.getElementById('main-content')), reg = /\.(?:png|jpeg|jpg|gif)$/i;
for(var i = 0, link; (link = links[i++]); ) {
if(reg.test(link.href)) {
link.innerHTML = '[img]%27%20+%20link.href%20+%20%27[/img]';
}
}
});
- Code:
[img]%27%20+%20link.href%20+%20%27[/img]
%27%20+%20link.href%20+%20%27
i tried
link.href
but failed i tried *.* failed too so is there a way to fix it
im also thinking about making a Script to replace youtube links to show the vedio insted of vedio link like the image replacer