コトバノウタカタ

よしなしごとをつらつらとつづるばしょ。

Amazonリンク

Amazonリンクを短くする

javascript:(function(){w=window;t=location.href;p=t.indexOf('/dp/');if(p==-1){alert('no /dp/');return;}e=t.indexOf('/',p+4);if(e!=-1){l=t.substring(p,e)}else{l=t.substring(p);}x=w.prompt('URL','http://www.amazon.co.jp'+l);if(x==''||x==null){return;}w.location.href=x}())

Amazon画像ページを表示

javascript:(function(){l=location.href;hd="/dp/";li=l.indexOf(hd);if(li==-1){alert("no asin data");return;}as=l.substr(li+hd.length,10);open("http://www.amazon.co.jp/gp/product/images/"+as,"_blank","");}());

Amazon画像一覧を表示

javascript:(function(){l=location.href;hd="/dp/";li=l.indexOf(hd);if(li==-1){alert("no asin data");return;}as=l.substr(li+hd.length,10);open("http://tetsu23.my.land.to/aimage.html?asin="+as,"_blank","");}());