天猫双十一自动领券方法解密
2015年10月14日 什么可以买
天猫双十一会发放非常多的优惠券,目前可以领全球购的优惠券,合计大概100张左右,如果手动领取,会非常累人。现在有个高科技的方法,可以实现自动领券,省时省力。下面是具体步骤。
1、首先用浏览器(chrome/火狐/360极速)打开双十一优惠券汇总地址:http://www.tmall.com/wow/act/14931/1111
2、按键盘上F12,打开控制台,选择console标签

3、把下面分享文档中串代码复制进去,点击回车,开始自动领券。
(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);
4、点击回车后,大概10多秒,页面券就会开始自动领取了

全部评论()
