🟩 もくじ
Amazonの複雑なURLを単純化(クリーニング)するブックマークレット|元のバージョン
javascript:(function(){var a=document.getElementsByName("ASIN.0")[0]?document.getElementsByName("ASIN.0")[0].value:document.getElementsByName("ASIN")[0]?document.getElementsByName("ASIN")[0].value:"ASIN\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f";location.href="https://www.amazon.co.jp/dp/"+a})();
Amazonの複雑なURLを単純化(クリーニング)するブックマークレット|改訂版
javascript:(function(){var e=document.getElementsByName("ASIN.0")[0]||document.getElementsByName("ASIN")[0],a=e?e.value:null;if(a){var u="https://www.amazon.co.jp/dp/"+a;history.replaceState(null,"",u);setInterval(function(){if(location.href!==u){history.replaceState(null,"",u);}},100);}else{alert("ASINが見つかりませんでした");}})();