天猫年货节超级红包,最高888元红包!点我抢年货节888元红包>>>

----------------------以下内容由惠喵APP整理-------------------------
温馨小提示:建议保存本页面,双十一优惠券,红包会不断在这个页面更新。
第一步:首先用浏览器打开
双十一优惠券汇总地址:http://www.tmall.com/wow/act/14931/1111

第二步:按键盘上f12,打开控制台,选择console标签

第三步,把下面这串代码复制进去,点击回车,进入自动领券过程。
- (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);
下图是领券过程:
