Linkify ting

By adam 3 Last update May 15, 2007 — Installed 568,399 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 31 posts, 22 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
anonymous_user User

This is one the better linkification scripts. Thanks.

 
js41 User

do not support http://www.fs2you.com/files/96bac33a-1b07-11dd-b255-00142218fc6e/

 
jab416171 User

Attempts to catch links like google.com
^^
google.com doesn't link automatically...

 
tj111 Scriptwright

I fixed the regular expression so that it doesn't cut off some urls at special charactars ('=', ':', ';', etc). Maybe you can implement it in the script. If you are using this and want to fix that, just click the 'Edit' button in the Greasmonkey menu, then change the current reg exp for this (on line 44).


var regex = /\b((?:http|shttp|https):\/\/)?(\w(\w|-)+\.)+(dk|com|net|org|se|no|nl|us|uk|de|it|nu|edu|info)(\/\w*)*(\.\w{2,4}){0,1}([?#&=:;]\w*)*\b/gi;

 
Adrian Scriptwright

LenR: I have created a script that does just that -- but only for email addresses: http://userscripts.org/scripts/show/23362

I wrote that script in just under an hour, so it makes you wonder just how pointless those patterns really are. But, from a spammer's perspective, it would require too much processing power and not entirely practical (for the moment) to scrape each page on the web using a script such as this.

 
overcaffein8d User

LenR, if they were to create software that did that, it would defeat the whole purpose of changing it, lol

 
LenR Scriptwright

Great script! I'd love to see support to de-cr@pify email address insertions - i.e. turn bob<at>test.com (or {at} _at_ etc) into bob@test.com.
Anyone know what are the differences are between linkify ting (http://userscripts.org/scripts/show/2254) and linkify plus (http://userscripts.org/scripts/show/1352)? Only one I can see is that ting picks up links like google.com but nothing else.</at>

 
bobielawlintine Scriptwright

Is there anyway to make this script work well for the links in google and other search engines?

 
azulmarino Scriptwright

Sorry, the right source code looks this way:

http://refer.ccbill.com/cgi<wbr>-bin/clicks.cgi?CA=910266-0000<wbr>&amp;PA=**YOURID**&amp;HTML=http://www<wbr>.foo.com/tgp/707/anett<wbr>/bar.html

 
azulmarino Scriptwright

Please, can you tweak this script to support the following link:

http://refer.ccbill.com/cgi<wbr>-bin/clicks.cgi?CA=910266-0000</wbr><wbr>&PA=**YOURID**&HTML=http://www</wbr><wbr>.foo.com/tgp/707/anett</wbr><wbr>/bar.html</wbr>

Todo list:
1 - ignore "<wbr></wbr>"
2 - support "=", "?", "&", "**".

The rendered textual link looks like this:
http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=9...

This would save me a lot of time since I received regular list of links like this I have to check.
I whish I could do it myselft but I don't understand the source code :(

 
Hanjo Scriptwright

Ok, I here are some more improvements:

var regex = /\b(https?:\/\/)?([\w\-]+\.)+([a-z]{2,3}|info|name|arpa|aero|asia|coop|jobs|mobi|museum|travel)(\/([\w?#&=.,;\-])*)*\b(\/)?/gi;

 
Hanjo Scriptwright

This one is even better:

var regex = /\b(http:\/\/|https:\/\/){0,1}(\w(\w|-)+\.)+(dk|com|net|org|se|no|nl|us|uk|de|it|nu|edu|info)(\/\w*)*(\.\w{2,4}){0,1}([\?#&=\-_\.,;]\w*)*\b/gi;

 
Hanjo Scriptwright

This regexp solves the problem with the equal sign and the https:
var regex = /\b(http:\/\/|https:\/\/){0,1}(\w(\w|-)+\.)+(dk|com|net|org|se|no|nl|us|uk|de|it|nu|edu|info)(\/\w*)*(\.\w{2,4}){0,1}(\?\w*|#\w*|&\w*|=\w*)*\b/gi;

 
neko Scriptwright

dashes seem to break the links too.
like this:
http://fakeurl.com/files/file-name-here.htm
stops right at the first dash.

 
Zathman User

This also doesn't link https:// text links

example in the comments at: http://googlewebmastercentral.blogspot.com/2007...

 
wagstaff Scriptwright

I'm not convinced that this new version is really an improvement!

I've been running the last version with a few tweaks to fix the problems mentioned in the comments here, and some others.

Unfortunately, despite the script's invitation to "contact me regarding new features, bugfixes or changes that I could integrate into the existing code", I can't see how to make that contact.

adam 3, if you've any interest in my modifications then give me a clue as to how to get in touch and I'll send them along for use / rejection as you see fit...

 
Zathman User

GM cuts off the last link, just look at http://userscripts.org/scripts/show/1949 there's a link there thats linked up to showtopic, not past =

 
Zathman User

Doesn't work on urls with equal ('=') signs in them. An example: http://www.extensionsmirror.nl/index.php?showto...

it links up to showtopic

 
Andy Gee User

Great script but it won't work with files containing more than one dot. E.g. http://rapidshare.com/files/27614525/GR.part1.rar

 
adam 3 Script's Author

I have made a new version that should fix the problems mentioned by meno and BionicTom. Sorry about the slow update. It doesn't work the way i want it to, but it works ok. Please tell if it is not working for you

 
meno like-bu... User

I have a false positive. When there are multiple periods and a certain word like this...it makes it a link. Maybe this is something that can be fixed?

 
BionicTom Scriptwright

I have a problem... it only converts the start into an url.

For example: http://www.myspace.com/luttenbergerklug

I just get the link ace.com/lutt

What can i do about it?

 
Yosaif User

very sweet...thx

 
ycc2106 Scriptwright

This is the best! Thanks!

I also excluded links like
http://*preview*,
http://*edit*...

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel