Skip to content

Instantly share code, notes, and snippets.

@kevintop
Last active December 24, 2015 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevintop/6725407 to your computer and use it in GitHub Desktop.
Save kevintop/6725407 to your computer and use it in GitHub Desktop.
(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