« livedoor Auth | Main | 5 second rule »

23 April 2007

エンコードされたURLをデコードして表示するjavascript

Mac OS X の Firefox で Vox の日本語 URL を見ようとするとエンコードされているので以下のようになります。

http://tshigeta.vox.com/library/post/vox-hunt%E6%AD%8C%E5%A3%B0%E3%81%8C%E7%84%A1%E3%81%84%E3%81%AE%E3%82%82%E3%81%84%E3%81%84%E3%82%88.html

そして、これを正しく復元すると以下のようになります。

http://tshigeta.vox.com/library/post/vox-hunt歌声が無いのもいいよ.html

いちいちデコードするスクリプトを書くのもアレなので、bookmarkletにしました。(単にURLを拾って、decodeURI を呼び出しているだけです。)

decode URL

Mac OS X の Firefox 2.0.0.3 でのみ動作確認をしております。

TrackBack

TrackBack URL for this entry:
http://bb.lekumo.jp/t/trackback/517129/31023267

Listed below are links to weblogs that reference エンコードされたURLをデコードして表示するjavascript:

Comments

I am not sure where you're getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic information I was looking for this information for my mission.

Howdy just wanted to give you a quick heads up and let you know a few of the pictures aren't loading properly. I'm not sure why but I think its a linking issue. I've tried it in two different browsers and both show the same outcome.

Today, while I was at work, my sister stole my apple ipad and tested to see if it can survive a twenty five foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views. I know this is completely off topic but I had to share it with someone!

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your blog when you could be giving us something informative to read?

Post a comment

Access Ranking

Powered by Six Apart
Sponsored links