Last active
November 12, 2019 11:08
-
-
Save paselin/5565d2282057f55f5ec3197d811fd7ad to your computer and use it in GitHub Desktop.
この中身をコピペしてブックマークのURLに貼り付けてね
This file contains 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%20protocol=location.protocol;var%20hostname=location.hostname;var%20path=location.pathname;var%20dpCode='';if(!hostname.match(/www\.amazon\.co\.jp/)){exit;}if(path.match(/\/dp\/[a-zA-Z0-9]*/)){dpCode=path.match(/\/dp\/[a-zA-Z0-9]*/);}if(path.match(/\/gp\/*\/[a-zA-Z0-9]*/)){dpCode="/dp/"+path.match(/gp.*\/([a-zA-Z0-9]*)/)[1];}var%20newUrl=protocol+"//"+hostname+dpCode;alert(newUrl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment