找回密码
 入住天佑斋
载入天数...载入时分秒...
搜索
查看: 335|回复: 3

[生活用品] [技术宅] 一次领光天猫双11所有优惠卷

[复制链接]
发表于 2015-11-9 17:44:42 | 显示全部楼层 |阅读模式
首先进入页面:6 S& P0 z' i" {+ A
                 http://www.tmall.com/wow/act/14931/1111: }: m0 A. H5 k* l. `# ?/ E

1 k6 U9 J) D! o4 R* V  U或者有的浏览器叫控制台,复制下面代码在空白处后按回车,即可。如果到时候有优惠的商品,就不用担心了,然后领光所有优惠券!/ e" N0 R. V- W. ~* w: E0 c
(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);

$ w6 B) V( ~5 V" t, {! X! e
  Q- f4 ^+ h/ X
J6[__79%[WQK5C~RX8D{ZWY.jpg
回复

使用道具 举报

 楼主| 发表于 2015-11-9 17:55:56 | 显示全部楼层
希望大家多多抢到优惠券,顺便帮我点赞~
回复

使用道具 举报

发表于 2015-11-9 18:03:39 | 显示全部楼层
牛人
回复

使用道具 举报

发表于 2015-11-9 21:53:55 | 显示全部楼层
这个真厉害 (不去试了 因为没钱买买买
回复

使用道具 举报

天佑斋微信小程序

QQ|手机版|小黑屋|西南交通大学 - 天佑斋 ( 蜀ICP备20015072号 )

GMT+8, 2025-4-22 10:36 , Processed in 0.047961 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表