一次自动领光天猫双11所有优惠卷

/ 10评 / 0

释放双手,自动化,高逼格

方法::首先进入活动页面http://www.tmall.com/wow/act/14931/1111 ,随便找个地方点击鼠标右键,选择审查元素(请使用火狐或者谷歌浏览器),点击 Console ,如图所示:

1

 

然后复制下面代码在空白处后按回车,即可。如图:

2

3

已经在自动工作了,等待一会,再去看看你的优惠券篮子,是不是多的吓尿了。

代码如下:
[code lang="js"]
(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);

[/code]

PS:打开网站后请先登录好自己的天猫账号。

 


 

fr0m:要去劈柴的太雄

10 responses to “一次自动领光天猫双11所有优惠卷”

  1. aaaa says:

    出错了a

  2. essay says:

    这个活动是真的吗?

  3. zengda says:

    不错,不错,看看了!

  4. 海景婚纱 says:

    借问江潮与海水,何似君情与妾心?

Leave a Reply

Your email address will not be published. Required fields are marked *