Created
September 6, 2017 23:53
-
-
Save zocoi/cded42f9e92ba197bf1fb5dc363e5d33 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
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