Direct Linker

By ankut Last update Oct 1, 2005 — Installed 3,510 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 4 voices



Jesse Andrews Admin

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

 
topio 2 User

Would be useful if the author mentioned some sites this script could be used on...

 
Henrik N Admin

Rod: I believe your problem might be solved if the URL is unescaped _after_ isolating the final destination instead of before. That is, replace the last line with this (untested):

links.snapshotItem(i).href = unescape(links.snapshotItem(i).href.replace(/^.*\?.*(http(:\/\/|%3A%2F%2F)[^&]+).*$/i, "$1"));

 
Rod McGuire Scriptwright

does not work for this link:

http://go.fark.com/cgi/fark/go.pl?IDLink=182599...

Transforms it to:

http://www.westpress.co.uk/displayNode.jsp?node...

instead of:

http://www.westpress.co.uk/displayNode.jsp?node...

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