Quote
fohstick
hello,
im looking for an extension that can automatically turn URLs into click-able links. does one exist?
Well, paste the code below into your hotlinks; F2 > Hotlinks. Now you can activate it with a hotkey Ctrl+0-9. Thanks for reminding me of it, fohstick
:
javascript: (function(){var%20D=document;%20D.body.normalize();%20F(D.body);%20function%20F(n){var%20u,A,M,R,c,x;%20if(n.nodeType==3){%20u=n.data.search(/https?\:\/\/[^\s]*[^.,">\s\)\]]/);%20if(u>=0)%20{%20M=n.splitText(u);%20R=M.splitText(RegExp.lastMatch.length);%20A=document.createElement("A");%20A.href=M.data;%20A.appendChild(M);%20R.parentNode.insertBefore(A,R);%20}%20}else%20if(n.tagName!="STYLE"%20&&%20n.tagName!="SCRIPT"%20&&%20n.tagName!="A")for(c=0;x=n.childNodes[c];++c)F(x);%20}%20})();
Remove the space between : and ( on the begining - I put it there to avoid sad smiley.
I tried long time ago to make an extension, but the code inserted into a macro makes the error console run amok, so I abandoned it.