Created
July 7, 2016 12:52
-
-
Save zerobase/b4eac3603d15cfbdc12f000ada860831 to your computer and use it in GitHub Desktop.
紀伊國屋在庫検索ブックマークレット Amazon.co.jp用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var%20d=document,h='#form-contents',f='https://www.kinokuniya.co.jp/disp/CKnSfStockSearchStockView',l=d.location,b0='978'+l.href.match('https://www.amazon.co.jp/.*(?:dp|product)/([0-9X]{10})/')[1].substr(0,9),bn=b0+(10-(b0.split('').map((x,i)=>(xx=parseInt(x),(i%252==0)?xx:xx*3)).reduce((acc,cur)=>acc+cur,0)%2510)),e=encodeURIComponent,p='.jsp?CAT=01&GOODS_STK_NO='+e(bn)+'&MAN_ENTR_CD1=G2';1;try{if%20(!/^(.*\.)?kinokuniya\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z)%20{a=function()%20{if%20(!window.open(f+p+h,'stockinfo','toolbar=0,status=0,resizable=1,width=700,height=500'))l.href=f+p+h};if%20(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment