Created
October 29, 2012 04:02
-
-
Save oquno/3971439 to your computer and use it in GitHub Desktop.
Auto Request Kindle Edition
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
// ==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