Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=Matt] [quote=fohstick] hello, im looking for an extension that can automatically turn URLs into click-able links. does one exist?[/quote] 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 :): [code] 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})(); [/code] [b]Remove the space between : and ( on the begining[/b] - 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.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development
English