Skip to content

Instantly share code, notes, and snippets.

@zocoi
Created September 6, 2017 23:53
Show Gist options
  • Save zocoi/cded42f9e92ba197bf1fb5dc363e5d33 to your computer and use it in GitHub Desktop.
Save zocoi/cded42f9e92ba197bf1fb5dc363e5d33 to your computer and use it in GitHub Desktop.
var intervalID = window.setInterval(myCallback, 1000);
function myCallback() {
var $claim = $("#claim")
if (!$claim.is(":disabled")) {
$claim.click()
clearInterval(intervalID)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment