Last active
December 24, 2015 01:39
-
-
Save kevintop/6725407 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
(function() { | |
var interval = 50; | |
var goBuyF = window.setInterval("goBuy()", interval); | |
var rebackF = window.setInterval("reback()", interval); | |
this.goBuy = function() { | |
var buyNextBtn = document.getElementById('buyNext'); | |
if (buyNextBtn) { | |
buyNextBtn.click(); | |
window.clearInterval(goBuyF) | |
} | |
}; | |
this.reback = function() { | |
var rebackBtn = document.getElementById('reback'); | |
if (rebackBtn) { | |
rebackBtn.click() | |
} | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这是自动点击小米网按钮的代码吗?