FFixer

By Vaughan Chandler Last update Mar 9, 2011 — Installed 14,796,192 times.

redirecting links

in
Subscribe to redirecting links 4 posts, 2 voices



hooloo Scriptwright

we can convert more of the redirecting links to direct links by adding the following after line 413:
if (m = document.links[i].href.match(/\/share.php\?.*sid=([^&]+)/)) {
document.links[i].href = document.links[i].title;
}

 
Vaughan Chan... Script's Author

Hi hooloo,

Well it seems that not all of the 'share.php' links have a title attribute to give us the real URL, but this would still be an improvement so I'll include it in the next release. Thanks a lot.

Vaughan

 
hooloo Scriptwright

Thanks. I scanned my newsfeed and those of my friends who often post links and didn't see any without titles set, so good to know that this conversion might fail sometimes.

 
Vaughan Chan... Script's Author

Yeah, on the links tab of the home page every link has a picture link which has no title and a text link which has a title. I modified your code to accommodate this.

It works out pretty well though as people well be able to choose which link they want to click on.

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