| 
 | 
领取地址一: 
使用谷歌浏览器,打开如下链接 
http://www.tmall.com/wow/act/14931/1111 
按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);
 
  复制代码 
领取地址二: 
使用谷歌浏览器,打开如下链接 
https://mybrand.tmall.com/myCoup ... 5.4.3.CFiV4y&type=1 
按上术方法输入如下代码并按回车 
- (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('.j_GetPromotion');
 
 - 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('.j_GetPromotion');
 
 - console.log("总共:" + couponLinks.length + "条张优惠券待领取...");
 
 - getCoupon();
 
 - } else {
 
 - document.body.scrollTop = _scrollTop;
 
 - }
 
 - }, 500);
 
 - }) (window, document);
 
 
  复制代码 |   
author:PMonkey_W 
copyright:Changsha Sinlody Network & Technology Co. Ltd. 
link:www.sinlody.com 
since:2015-11-05 
version:1.0 
 
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册  
 
x
 
 
 
 
 |