Skip to content

Instantly share code, notes, and snippets.

@thrbowl
Last active August 29, 2015 14:19
Show Gist options
  • Save thrbowl/9521caa4e96fea0c4753 to your computer and use it in GitHub Desktop.
Save thrbowl/9521caa4e96fea0c4753 to your computer and use it in GitHub Desktop.
var timer;
timer = setInterval(function () {
console.info("check exchange-submit-btn");
var exchangeBtn = document.getElementById("exchange-submit-btn");
if (exchangeBtn) {
clearInterval(timer);
exchangeBtn.click();
timer = setInterval(function () {
console.info("check ik-authcode-input");
var authcodeInput = document.getElementById("ik-authcode-input");
if (authcodeInput) {
authcodeInput.focus();
clearInterval(timer);
}
}, 10);
}
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment