一键领取天猫双11优惠券

888u

Last update at :2024-04-23,Edit by888u

Just saw it at LOC, so came over.

Method: First enter the event page http://www.tmall.com/wow/act/14931/1111, right-click anywhere and select Review Element.

Click Console, then copy the following code in the blank space and press Enter. If there are discounted products at that time, there is no need to worry.


(function(window, document, undefined) {
    var interval = 800;
    var closeDelay = 200;
    var index = 0;
    var couponLinks;
    var getCoupon = function() {
        if (index >= couponLinks.length) {
            console.log("Collection completed");
            return;
        }
        var coponLink = couponLinks[index];
        coponLink.click(); index++;
        console.log("Receive the " + index + " Zhang");
        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("Total:" + couponLinks.length + "Coupons to be collected...");
            getCoupon();
        } else {
            document.body.scrollTop = _scrollTop;
        }
    }, 500);
}) (window, document);



Then I collected all the coupons!

Recommended site search: icp registration website, high defense server rental, website registration domain name query, server rental US high defense, German server, US virtual space, foreign trade host, Jiangxi server rental, domain name registration company, Hong Kong Server rental,

一键领取天猫双11优惠券

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码