Skip to content

Instantly share code, notes, and snippets.

@kdmsnr
Created January 23, 2020 18:35
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 kdmsnr/e5be3df964522231b2b6f87788561e4e to your computer and use it in GitHub Desktop.
Save kdmsnr/e5be3df964522231b2b6f87788561e4e to your computer and use it in GitHub Desktop.
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