Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Tin Foil Hat

Reveals destination URLs hidden by TinyURL

For each link that is redirected through TinyURL, Tin Foil Man finds out what the real destination is and makes the link display that information in a tooltip.




Mar 14, 2008
no_master User

This is a very cool script and it works. So far I have had to use an redirect checker, fx.: http://www.webconfs.com/redirect-check.php when I was suspicious about tinyurls.

Just to bad that the script doesn't have any Linkification support: The tinyurl text link which Linkification converts into clickable links, doesn't show a tooltip when hovering over them :(, so for them I still has to use http://www.webconfs.com/redirect-check.php
Would be nice if someone could make a redirect checker which supported checking for all redirecting links via: http://www.webconfs.com/redirect-check.php


 
Feb 18, 2008
simon! Scriptwright

example: (working!)

thanks!


 
Feb 18, 2008
simon! Scriptwright

example: (working!)

thanks!


 
Jan 20, 2008
norz User

@Mithrandir:
Danke schön! :)


 
Jan 15, 2008
Mithrandir Scriptwright

@norz: Try

if (match) {
// replace href with real url:
 link.href = match[1];
// replace text with real url:
 link.firstChild.nodeValue = match[1];
}


 
Sep 22, 2007
norz User

Can it be modified to even change the url text to the source url?
This would be useful when display a page in twitter with lots of tinyurls in it...
Note: the Annotate links script can add foot notes as text for links in the document, but it's less convenient when just browsing.
(http://userscripts.org/scripts/show/1317)


 
Aug 14, 2007
greut Scriptwright

An adaptation with more XPath and less JS, as my provider is blocking tinyurl.org: http://userscripts.org/scripts/show/11410


 
May 9, 2007
Mithrandir Scriptwright

Nice script! I changed this line:
if (match) {
link.title = match[1];
}

into

if (match) {
link.href = match[1];
}

now the link itself is "fixed".


 
Apr 12, 2007
Aaron McBride Scriptwright

Great idea! Thanks.


 
Jul 24, 2006
works2late User

Example: http://tinyurl.com/lwzqn


 
Mar 17, 2006
theaulddubliner Scriptwright

I'm undecided as to which is better - the script or the name !!!


You could comment on this script if you were logged in.