Skip to content

Instantly share code, notes, and snippets.

@ozero
Created September 26, 2011 03:21
Show Gist options
  • Save ozero/1241548 to your computer and use it in GitHub Desktop.
Save ozero/1241548 to your computer and use it in GitHub Desktop.
bookmarklet: format amazon-jp url as [domain]/dp/[asin]
javascript:(function(){var i,u,a,p;u=location.href;p=u.split("/");for(i=0;i<p.length;i++){if(p[i]=="dp"||p[i]=="a"){a=p[i+1];}}if(a){location="http://www.amazon.co.jp/dp/"+a;}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment