全自动领取天猫双11优惠券教程!

来源:互联网 发布:嵌入式系统的软件 编辑:程序博客网 时间:2024/04/29 02:36
#双十一爆款清单##天猫爆款清单##天猫双11爆款清单#自动领取天猫双11优惠券教程!

第一步:打开2015年天猫双十一领券页面:http://s.click.taobao.com/nYHeKox 
记住一定要先【登录】 
记住一定要先【登录】 
记住一定要先【登录】 
第二步:按键盘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);

第四步:开始自动领取优惠券

屏幕上会连续出现领取成功


最后查看一下自己领到的优惠券吧~

我领的时候还有100多张,刚刚同时领只剩下90多了,速度领~~
0 0