Created
January 23, 2020 18:35
-
-
Save kdmsnr/e5be3df964522231b2b6f87788561e4e to your computer and use it in GitHub Desktop.
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
window.addEventListener("load", main, false); | |
function main(e) { | |
const jsInitCheckTimer = setInterval(jsLoaded, 1000); | |
function jsLoaded() { | |
var t = document.querySelector(".ebookBuyboxDeliverToDropdown").children[1]; | |
if (t != null) { | |
clearInterval(jsInitCheckTimer); | |
var c = t.parentNode.children; | |
for (var i = 0; i < c.length; i++) { | |
if (c[i].label == "_iPad") { | |
c[i].selected = true; | |
document.querySelector(".a-dropdown-prompt").innerText = '_iPad'; | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment