http://www.flickr.com/groups/api/discuss/72157616713786392/ の php を参考に作ってみた javascript です。 pbtweet で flic.kr の URL をデコードするために使っています。 function base58_decode( snipcode ) { var alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ' ; var num = snipcode.length ; var decoded = 0 ; var multi = 1 ; for ( var i = (num-1) ; i >= 0 ; i-- ) { decoded = decoded + multi * alphabet.indexOf( sni