当前位置:

一次领光天猫双 11 所有优惠卷的黑科技

xiaoming 2023-01-19 130 0

(function(window, document, undefined) { var interval = 800; var closeDelay = 200; var index = 0; var couponLinks; var getCoupon = function() { if (index >= couponLinks.length) { console.log("领取完毕"); return; } var coponLink = couponLinks[index]; coponLink.click(); index++; console.log("领取 第" + index + " 张"); setTimeout(getCoupon, interval); setTimeout(function() { var close = document.querySelector(.mui-dialog-close); if (close != null) close.click(); }, closeDelay); } var scrollTop = 0; var scrollStep = document.documentElement.clientHeight; var maxScrollTop = document.body.clientHeight - document.documentElement.clientHeight; var autoScrollDown = setInterval(function() { scrollTop += scrollStep; if (scrollTop > maxScrollTop) { clearInterval(autoScrollDown); couponLinks = document.querySelectorAll(.mui-act-item-yhqbtn); console.log("总共:" + couponLinks.length + "条张优惠券待领取..."); getCoupon(); } else { document.body.scrollTop = scrollTop; } }, 500); }) (window, document);

一次领光天猫双 11 所有优惠卷的黑科技

发表评论

  • 评论列表
还没有人评论,快来抢沙发吧~
您是本站第4603名访客 今日有0篇新文章