一次领光天猫双11所有优惠卷
一次领光天猫双11所有优惠卷一次领光天猫双11所有优惠卷
一次领光天猫双11所有优惠卷
重要的要说三次!!!
方法:首先进入活动页面http://www.tmall.com/wow/act/14931/1111,随便找个地方点击鼠标右键,选择审查元素,点击Console,
http://www.youpeak.com/data/attachment/forum/201510/15/022053kyhzxf8nk5hha8x1.jpg
右键,审查元素
http://www.youpeak.com/data/attachment/forum/201510/15/022158gad9kahbza9zq9oe.png
点击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;
[*] 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);
[*]
然后领光所有优惠卷了!
http://www.youpeak.com/data/attachment/forum/201510/15/022053u9bzbi1ibv19kbpi.png
页:
[1]