TinyURL Popup Preview

By Yuichirou Last update Nov 23, 2008 — Installed 4,446 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 10 posts, 7 voices



Jesse Andrews Admin

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

 
khopesh Scriptwright

For links.snapshotLength, the Firefox Error Console reports Component is not available. Where is snapshotLength supposed to be defined? Does this script have an unspecified dependency? It certainly seems to exist in the documentation, but it's not working for me on Firefox 3.0.1 for Linux (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)). Ideas?

Update: I solved this by changing the for loop declaration to
for (var i = 0; i < links.snapshotLength; i++) instead of trying to conserve lookup time by saving the length before running. No idea why that was needed, but this works for me now.

Thanks for this script! It is important to me (for privacy reasons) to get a version of this script that doesn't send data through a third party (the way the others do). The Interceptor 2.1, LongURL Mobile Expander, and even the new so-called Tin Foil Hat also fail on this front, depending on some third-party CGI API.

This script would be more locatable if you added some tags, like: tinyurl, tinyurl preview

For testing purposes: this script (which is http://tinyurl.com/3xzqz8 ) and fake tinyurl and fake invalid tinyurl and this script (with a title). Hmm, the fake link resolves to a URL in the title despite leading to a tinyurl.com error page (not that this really matters much).

I worry about this script slamming your bandwidth when you find yourself viewing a page with a thousand tinyurl links... Maybe limit that loop to for (var i = 0; i < links.snapshotLength && i < 100; i++) to head that off? 100 is arbitrary; what sounds better?

 
no_master User

This script does exactly the same as this script: "Tin Foil Hat old" http://userscripts.org/scripts/show/3548 . That script also uses the tinyurl preview page (source code says: http://tinyurl.com/preview.php?num= )

Isn't preview.tinyurl.com and http://tinyurl.com/preview.php?num= the same thing?

Either way I think that this script beats them both: "Interceptor 1.2" http://userscripts.org/scripts/show/23817
It also uses the preview.tinyurl.com in the source code.

The "interceptor 2.1" is the ruler of "Tin Foil Hat new": http://userscripts.org/scripts/show/11410 which does not use preview.tinyurl.com

Comment about the redirecting bebo example not working:
Yeah this is really annoying... Even though I have the RedirectRemover Extension installed, which does that, when I point at the bebo link it shows me the tinyurl adress in the statusbar, it doesn't work for me either (links redirecting tinyurl which redirects long url, instead of just tinyurl redirecting to long url)
I would like to see someone come up with an solution for this too.
Chill

 
Yuichirou Script's Author

> Script doesn't seem to work when redirecting from (for example) bebo.

I just checked links directly linking to "tinyurl.com", but your idea sounds good.

Now I edited the script to accept such cases.

 
Olan User

Script doesn't seem to work when redirecting from (for example) bebo. Copied link location is: http://www.bebo.com/Link.jsp?Url=http%3A%2F%2Ft...

[shows up as http://www.bebo.com/Link.jsp?Url=http://tinyurl... in the link preview pane on firefox]

 
Yuichirou Script's Author

> Very nice - but already done.

Yeah, I know. But this script has a stronger point from that script.

I just wrote the strong point above.

 
wagstaff Scriptwright

This is the link I intended...

 
wagstaff Scriptwright

Very nice - but already done.

(I was thinking about doing this myself; but looked to see if anyone had go there first...)

 
Yuichirou Script's Author

Touch links to TinyURL like this: http://tinyurl.com/6

You can see the full address as a TITLE attribute popup.

 
pogue User

This script doesn't seem to be working. Do popups need to be enabled or anything?

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