找回密码
 立即注册
查看: 6590|回复: 16

转载!购物达人必备福利!溢出领光天猫双十一所以优惠券!

[复制链接]

4

主题

1152

回帖

4219

积分

钻石会员

积分
4219

伊芙

寂寞如雪 发表于 2015-10-16 08:59:35 | 显示全部楼层 |阅读模式
本帖最后由 寂寞如雪 于 2015-10-16 09:03 编辑

方法:首先进入活动页面 http://www.tmall.com/wow/act/14931/1111 ,随便找个地方点击鼠标右键,选择审查元素,点击 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);

[color=rgb(51, 102, 153) !important]复制代码



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

3

主题

252

回帖

1070

积分

高级会员

积分
1070
15980587147 发表于 2015-10-16 09:50:35 | 显示全部楼层
转载!购物达人必备福利!溢出领光天猫双十一所以优惠券
回复

使用道具 举报

15

主题

141

回帖

745

积分

高级会员

积分
745
荆棘花 发表于 2015-10-16 11:14:37 | 显示全部楼层
膜拜,膜拜
回复

使用道具 举报

15

主题

141

回帖

745

积分

高级会员

积分
745
荆棘花 发表于 2015-10-16 11:16:48 | 显示全部楼层
膜拜,膜拜
回复

使用道具 举报

15

主题

141

回帖

745

积分

高级会员

积分
745
荆棘花 发表于 2015-10-16 11:20:28 | 显示全部楼层
骗人的,我买了,领取不了
回复

使用道具 举报

8

主题

808

回帖

7566

积分

论坛元老

积分
7566

猴年

卖汤圆的小贰 发表于 2015-10-16 12:11:47 | 显示全部楼层
荆棘花 发表于 2015-10-16 11:20
骗人的,我买了,领取不了

他已经把所有优惠券都领光了。你还领啥?
回复

使用道具 举报

25

主题

660

回帖

1549

积分

高级会员

积分
1549
月亮是我啃完的 发表于 2015-10-16 12:43:43 | 显示全部楼层
asdsadsadsa
回复

使用道具 举报

60

主题

508

回帖

5470

积分

钻石会员

学无止境

积分
5470

卓越会员

QQ
海潮 发表于 2015-10-16 16:36:23 | 显示全部楼层
有点意思,晚上试试~
回复

使用道具 举报

15

主题

141

回帖

745

积分

高级会员

积分
745
荆棘花 发表于 2015-10-17 09:41:52 | 显示全部楼层
这完全骗人,版主 也不管管么?
回复

使用道具 举报

1

主题

43

回帖

214

积分

禁止访问

积分
214
test 发表于 2015-10-17 10:18:52 | 显示全部楼层
首先进入活动页面 http://www.tmall.com/wow/act/14931/1111 ,随便找个地方点击鼠标右键,选择审查元素,点击 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);

PS:只提供方法,风险自动承担。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|虫虫联盟 ( 备案号:蜀ICP备15018121号-1 )

GMT+8, 2026-4-20 03:46 , Processed in 2.628427 second(s), 32 queries .

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

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