Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Convert non-clickable links to clickable links Web Browsers
This bookmarklet will convert "cold-links" (i.e. URLs which do not link) into clickable hotlinks. This is from the krapplack.de collection of bookmarklets, where you can find a number of other potentially useful bookmarklets.

Create a new bookmark with a name like Linkify, and use the following text as the address (or whatever your browser labels the URL field):
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]*[^.,;'%22>\s\)\]]/);%20if(u>=0)%20{%20M=n.splitText(u);%20R=M.splitText(RegExp.lastMatch.length);%20A=document.createElement(%22A%22);%20A.href=M.data;%20A.appendChild(M);%20R.parentNode.insertBefore(A,R);%20}%20}else%20if(n.tagName!=%22STYLE%22%20&&%20n.tagName!=%22SCRIPT%22%20&&%20n.tagName!=%22A%22)for(c=0;x=n.childNodes[c];++c)F(x);%20}%20})();
I added this to my Safari bookmarks bar at the far left, so I can invoke it just by hitting Command-1.

[robg adds: I haven't tested this one.]
    •    
  • Currently 2.88 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (16 votes cast)
 
[10,629 views]  

Convert non-clickable links to clickable links | 7 comments | Create New Account
Click here to return to the 'Convert non-clickable links to clickable links' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Convert non-clickable links to clickable links
Authored by: ccjensen on Dec 04, '09 08:04:06AM

this is a link: http://www.macosxhints.com

edit: love it

Edited on Dec 04, '09 08:04:57AM by ccjensen



[ Reply to This | # ]
Convert non-clickable links to clickable links
Authored by: asmeurer on Dec 04, '09 08:30:57AM

I was going to add an actual link to the javascript so people could just drag it up the their bookmarks, but I can't figure out how to make WordPress do it.



[ Reply to This | # ]
Convert non-clickable links to clickable links
Authored by: asmeurer on Dec 04, '09 08:43:07PM

I mean GeekLog of course :)



[ Reply to This | # ]
Convert non-clickable links to clickable links
Authored by: ttyler1999 on Dec 04, '09 08:49:54AM

Linkification is a extension for Firefox that also does this:

https://addons.mozilla.org/en-US/firefox/addon/190



[ Reply to This | # ]
alternative
Authored by: ra5ul on Dec 04, '09 08:00:03PM

this is what i use:
http://home.comcast.net/~ra4ul/link.html

it works more generally, e.g. on:

http://snpp.com/
www.craigslist.org
ftp://ftp.mozilla.org/
user@domain.net



[ Reply to This | # ]
Convert non-clickable links to clickable links
Authored by: joeholmes on Dec 05, '09 04:40:31AM

It's not clear from the description, but all you have to do is click the bookmarket and all the coldlinks on the current Web page turn into hot links.



[ Reply to This | # ]
Convert non-clickable links to clickable links
Authored by: enaz81 on Dec 06, '09 02:43:11PM

this is awesome. does anybody know how to make an automator script for this, so that it will be added to the contextual menu while running safari.



[ Reply to This | # ]