2008 Sep 1st
TinyURL を使って作られている URL をオリジナルの URL に戻すユーザースクリプトを書いてみました。Greasemonkey :: Firefox Add-onsから Graeasemonkey をインストールした上で
http://userscripts.org/scripts/show/40582
をインストールすると、
encoded by TinyURL
のように TinyURL で圧縮されている URL が
encoded by TinyURL
というように元の URL が表示されるようになります。
ちなみに同じようなものはいくつかあるようなのですが、このスクリプトでは GM_xmlhttpRequest() の onload の中でレスポンスの中の finarUrl を使っています。また、同じ URL の場合には何度も元 URL をチェックするのは無駄なので、連想配列で cache を持つようにしていています。このキャッシュの長さはデフォルトでは 100 個にしていますが、 about:config から greasemonkey.scriptvals.http://matatabi.homeip.net/TinyURL Decoder でフィルタをかけると maxlength というのがあるので、ここで 10 とか 1000 とか好きな値に変更することができます。
Posted by setomits at 10:16 | Comments: 10
Re: TinyURL Decoder
I have approached the problem a little differently. Check out a proposal i just wrote up:

http://sites.google.com/a/snaplog.com/wiki/short_url_hints

I would like to hear your thoughts.

r.S.
Posted by Robert Spychala at 04:45 on 2009 Apr 3rd
Re: TinyURL Decoder
Hi Robert,

I read your proposal and felt that it might be useful for some situations.
I have thought about the problem for a couple days.
There are several services to shoten URLs and their shortened URLs. I think it is good for us to have options which service we use.

Anyway, it may be good for us that there is only one canonical URL. So it might be helpful to use META with rel="canonical" proposed at Official Google Webmaster Central Blog: Specify your canonical.

Thank you.
Posted by setomits at 10:09 on 2009 Apr 4th
Re: TinyURL Decoder
Does not seem to work with Greasemonkey using FF2 (v2.0.0.14 to be exact) but I appreciate the script nonetheless.
Posted by skeeball at 06:35 on 2009 Apr 19th
Re: TinyURL Decoder
Hi skeeball,
Thank you for your report.
This script uses some Greasemonkey APIs like GM_setValue, GM_getValue, GM_log and GM_xmlhttpRequest, so the version of Greasemonkey might concern with your problem.
I'm not sure whether I try to solve it or not, but could you let me know the version?

Thanks.
Posted by setomits at 09:20 on 2009 Apr 19th
Re: TinyURL Decoder
linkbee.com sometimes by some url's dont encode. Is it possible to make it more compatible?
Posted by user1 at 16:17 on 2009 May 31st
Re: TinyURL Decoder
Hi user1,
I will check it, so please wait for a while.
Thank you.
Posted by setomits at 22:40 on 2009 Jun 2nd
Re: TinyURL Decoder
The script doesn't work with query parameters like http://bit.ly/abcdef?foo=1=2
Please consider the following chages which work for me:
    function request_for(a) {
	var a_href = a.href;
	if (a_href.indexOf('?') > 0) {
		a_href = a_href.substring(0, a_href.indexOf('?'));
	}
then use a_href instead of a.href in the complete request_for function and
		    onload: function(resp) {
			finalUrl = extract_from_response(resp);
			if (_node.href.indexOf('?') > 0) {
				finalUrl = finalUrl + _node.href.substring(_node.href.indexOf('?'));
			}
			if (finalUrl) {
Thanks & Regards,
Andreas
Posted by Andreas at 00:33 on 2009 Jul 24th
Re: TinyURL Decoder
Could u add support for this plz?

Thanx a lot!!
Nice script
Posted by http://thecow.me/ at 01:48 on 2009 Sep 25th
Re: TinyURL Decoder
Hi, thank you for your request.
I added TheCow in supported.
Enjoy it!
Posted by setomits at 05:26 on 2009 Oct 1st
Re: TinyURL Decoder (NEW Update Not Oficial)
UpDate http://UIOP.ME WebSite (NEW Version)
http://www.hleraweb.xpg.com.br/twitter/Tweets-URL-Decoder-v1-Beta[By-BGyn].zip
From: @BGyn
Posted by BGyn at 00:45 on 2010 Feb 6th
Leave a comment
Required fields are marked with *
search
calendar
Feb 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28      
archives
photos on flickr
www.flickr.com
bookmarks on delicious