长沙星乐点网络科技有限公司 - 星乐点|星乐点网络

标题: 一次领光天猫双 11 所有优惠卷 [打印本页]

作者: admin    时间: 2015-10-15 21:31
标题: 一次领光天猫双 11 所有优惠卷
领取地址一:
使用谷歌浏览器,打开如下链接
http://www.tmall.com/wow/act/14931/1111
按F12并单击console标签
[attach]1[/attach]
输入如下代码,并按回车
  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);
复制代码
[attach]2[/attach]




欢迎光临 长沙星乐点网络科技有限公司 - 星乐点|星乐点网络 (https://sinlody.com/) Powered by Discuz! X3.2