7×24小时服务热线:0731-88057896  联系QQ:1810406039
搜索
热搜: 活动 交友 discuz
查看: 40188|回复: 0
打印 上一主题 下一主题

一次领光天猫双 11 所有优惠卷

[复制链接]

9

主题

9

帖子

257

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
257
跳转到指定楼层
楼主
发表于 2015-10-15 21:31:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
领取地址一:
使用谷歌浏览器,打开如下链接
http://www.tmall.com/wow/act/14931/1111
按F12并单击console标签

输入如下代码,并按回车
  1. (function(window, document, undefined) {
  2. var interval = 800;
  3. var closeDelay = 200;
  4. var index = 0;
  5. var couponLinks;
  6. var getCoupon = function() {
  7. if (index >= couponLinks.length) {
  8. console.log("领取完毕");
  9. return;
  10. }
  11. var coponLink = couponLinks[index];
  12. coponLink.click(); index++;
  13. console.log("领取 第" + index + " 张");
  14. setTimeout(getCoupon, interval);
  15. setTimeout(function() {
  16. var close = document.querySelector('.mui-dialog-close');
  17. if (close != null) close.click();
  18. }, closeDelay);
  19. }
  20. var _scrollTop = 0;
  21. var _scrollStep = document.documentElement.clientHeight;
  22. var _maxScrollTop = document.body.clientHeight - document.documentElement.clientHeight;
  23. var autoScrollDown = setInterval(function() {
  24. _scrollTop += _scrollStep;
  25. if (_scrollTop > _maxScrollTop) {
  26. clearInterval(autoScrollDown);
  27. couponLinks = document.querySelectorAll('.mui-act-item-yhqbtn');
  28. console.log("总共:" + couponLinks.length + "条张优惠券待领取...");
  29. getCoupon();
  30. } else {
  31. document.body.scrollTop = _scrollTop;
  32. }
  33. }, 500);
  34. }) (window, document);
复制代码

领取地址二:
使用谷歌浏览器,打开如下链接
https://mybrand.tmall.com/myCoup ... 5.4.3.CFiV4y&type=1
按上术方法输入如下代码并按回车
  1. (function(window, document, undefined) {
  2. var interval = 800;
  3. var closeDelay = 200;
  4. var index = 0;
  5. var couponLinks;
  6. var getCoupon = function() {
  7. if (index >= couponLinks.length) {
  8. console.log("领取完毕");
  9. return;
  10. }
  11. var coponLink = couponLinks[index];
  12. coponLink.click(); index++;
  13. console.log("领取 第" + index + " 张");
  14. setTimeout(getCoupon, interval);
  15. setTimeout(function() {
  16. var close = document.querySelector('.j_GetPromotion');
  17. if (close != null) close.click();
  18. }, closeDelay);
  19. }
  20. var _scrollTop = 0;
  21. var _scrollStep = document.documentElement.clientHeight;
  22. var _maxScrollTop = document.body.clientHeight - document.documentElement.clientHeight;
  23. var autoScrollDown = setInterval(function() {
  24. _scrollTop += _scrollStep;
  25. if (_scrollTop > _maxScrollTop) {
  26. clearInterval(autoScrollDown);
  27. couponLinks = document.querySelectorAll('.j_GetPromotion');
  28. console.log("总共:" + couponLinks.length + "条张优惠券待领取...");
  29. getCoupon();
  30. } else {
  31. document.body.scrollTop = _scrollTop;
  32. }
  33. }, 500);
  34. }) (window, document);
复制代码

本帖子中包含更多资源

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

x
回复

使用道具 举报

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

本版积分规则

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