loading...

自作のブックマークレットです。タイトル文字列をそのままブックマークバーにドラッグ&ドロップすることで追加できます。コピーボタンでコピーしたスクリプトにはjavascript:が付いていないのでご注意ください。

たまに追加します。

Array.prototype.forEach.call(document.querySelectorAll("#g-items>li"),e=>{var t=e.dataset.repositionActionParams,r=t?t.match(/ASIN:(\w+)\|/)[1]:"なし",a=`<a href="https://www.google.co.jp/search?q=${r}" target="_blank">ASIN:${r}</a>`;e.isInsertedASIN?e.querySelector(".item-asin").innerHTML=a:(e.insertAdjacentHTML("beforeend",'<div class="item-asin">'+a+"</div>"),e.isInsertedASIN=!0)});
Amazonのほしい物リストの各項目にASINコードとGoogle検索URLへのリンクを追加します。モバイル版のページには対応していません。
リストの続きを読み込んだ場合は再度実行すると反映されます。
(function(){const url=document.getElementById('my-canvas-object').toDataURL('image/png');const outer=document.createElement('div');outer.setAttribute('style','position:fixed; top:0; left:0; right:0; text-align:center;');const img=document.createElement('img');img.setAttribute('style','background-color:white;');img.src=url;img.addEventListener('click',function(){document.body.removeChild(outer)});outer.appendChild(img);document.body.appendChild(outer)})()
着せ替えWebアプリ「Picrew」で画像を着せ替え中に保存できるようにするスクリプトです。
着せ替え画面で実行すると画像が最前面に表示され、右クリックから(スマホなら長押しで)保存できます。クリック(タップ)すると閉じます。