Skip to content

Instantly share code, notes, and snippets.

@oquno
Created October 29, 2012 04:02
Show Gist options
  • Save oquno/3971439 to your computer and use it in GitHub Desktop.
Save oquno/3971439 to your computer and use it in GitHub Desktop.
Auto Request Kindle Edition
// ==UserScript==
// @name Auto Request Kindle Edition
// @namespace http://oq.la/
// @include http://www.amazon.co.jp/*
// ==/UserScript==
(function(){
var asin = document.getElementById("ASIN");
if (asin) {
asin = asin.value;
var iframe = document.createElement("iframe");
iframe.width = iframe.height = 1;
iframe.src = "http://www.amazon.co.jp/gp/digital/fiona/detail/request-kindle-edition/ref=dtp_dp_su_"+ asin +"?ie=UTF8&a=" + asin;
document.body.appendChild(iframe);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment