Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Created July 22, 2012 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bouzuya/3158732 to your computer and use it in GitHub Desktop.
Save bouzuya/3158732 to your computer and use it in GitHub Desktop.
javascript:(function(){var f="bouzuya-22";var d=/^http:\/\/www\.amazon\.co\.jp(?:.*)\/(?:(?:gp\/product)|(?:dp))\/([0-9A-Za-z]{10}).*$/;var a=location.href.match(d);if(a==null){return}var e=document.createTextNode("A!");var b="http://amazon.jp/o/ASIN/"+a[1]+"/"+f;var c=document.createElement("a");c.appendChild(e);c.setAttribute("href",b);document.getElementById("btAsinTitle").appendChild(c);return false})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment