Skip to content

Instantly share code, notes, and snippets.

@kevintop
Last active Dec 24, 2015
Embed
What would you like to do?
(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()
}
};
})();
@MasterDc
Copy link

这是自动点击小米网按钮的代码吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment