80白菜
标题:
双11优惠卷自动领取程序,有兴趣的朋友看看吧,本人对程序不熟悉,如果有问题,请...
[打印本页]
作者:
admin
时间:
2015-10-14 03:12
标题:
双11优惠卷自动领取程序,有兴趣的朋友看看吧,本人对程序不熟悉,如果有问题,请...
http://www.tmall.com/wow/act/14931/1111
先用火狐 360等浏览器登录这个页面
点击右键,选择审查元素 然后在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);
欢迎光临 80白菜 (http://1980.80baicai.biz/)
Powered by Discuz! X3