Skip to content

Instantly share code, notes, and snippets.

@kevintop kevintop/rush-mi.js
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

This comment has been minimized.

Copy link

commented Oct 16, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.