ubnt解决方案
查看: 2429|回复: 7

双11天猫优惠券自动领取一次性全自动全领光

[复制链接]

291

回帖

681

积分

449 小时

在线时间

中尉

注册时间
2013-4-13
金币
283 个
威望
6 个
荣誉
1 个
累计签到:84 天
连续签到:0 天
[LV.100]试剑无线
发表于 2015-10-24 17:35 |显示全部楼层
点击进入活动页面

要求用谷歌内核的浏览器.  活动页面按F12键进Console 或者右键选择审查元素,点击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);

13

回帖

81

积分

14 小时

在线时间

上等兵

注册时间
2012-10-25
金币
65 个
威望
0 个
荣誉
0 个
累计签到:2 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2015-10-24 17:46 |显示全部楼层
多谢。已领取。
回复

使用道具 举报

270

回帖

1784

积分

81 小时

在线时间

上尉

注册时间
2015-10-14
金币
1494 个
威望
2 个
荣誉
0 个
累计签到:139 天
连续签到:1 天
[LV.200]无线新星
发表于 2015-10-24 21:44 来自手机 |显示全部楼层
没用吧  去年的丢了
回复

使用道具 举报

61

回帖

249

积分

27 小时

在线时间

少尉

注册时间
2014-3-30
金币
177 个
威望
1 个
荣誉
0 个
累计签到:24 天
连续签到:0 天
[LV.50]初入江湖
发表于 2015-10-24 21:55 |显示全部楼层
脚本不错 就是没几个真正优惠的
回复

使用道具 举报

955

回帖

2503

积分

963 小时

在线时间

少校

注册时间
2013-5-24
金币
1369 个
威望
0 个
荣誉
0 个
累计签到:137 天
连续签到:0 天
[LV.200]无线新星
发表于 2015-10-24 22:20 |显示全部楼层
remenbo 发表于 2015-10-24 21:55
脚本不错 就是没几个真正优惠的

这些都是领着防身的,不一定那个有用
回复

使用道具 举报

73

回帖

431

积分

223 小时

在线时间

少尉

注册时间
2014-8-30
金币
325 个
威望
0 个
荣誉
0 个
累计签到:61 天
连续签到:0 天
[LV.100]试剑无线
发表于 2015-10-27 16:00 |显示全部楼层
已领,谢谢
回复

使用道具 举报

10

回帖

139

积分

27 小时

在线时间

上等兵

注册时间
2015-8-12
金币
119 个
威望
1 个
荣誉
0 个
累计签到:6 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2015-10-27 16:33 |显示全部楼层
只有首页的能领,其他的类别都没法领
回复

使用道具 举报

5653

回帖

1万

积分

758 小时

在线时间

上校

注册时间
2013-10-4
金币
10816 个
威望
0 个
荣誉
1 个
累计签到:311 天
连续签到:0 天
[LV.365]无线熟人
发表于 2015-10-27 21:16 |显示全部楼层
谢谢,(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);
无聊无聊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2025-6-23 18:48

返回顶部 返回列表