Warning: Use of undefined constant smart_ads_days - assumed 'smart_ads_days' (this will throw an Error in a future version of PHP) in /www/wwwroot/welovelead.net/wp-content/plugins/smart-ads/smartads.php on line 341
感觉没太大用,但是万一有人需要呢?我领了半天也没领完,一烦之下关掉了。双十一准备疯狂采购的人不可错过!
步骤一 打开活动页面:
http://www.tmall.com/wow/act/14931/1111
注:我用的是遨游浏览器,其他浏览器请自行对应
步骤二 随便一个位置点击右键,然后选择“审查元素”
步骤三 点击“控制台”,如果是英文的,就是点击“console”
步骤四 把下面的代码粘贴到下图位置
位置:
代码:
// looping fetch
var once = function(){
// original author: https://v2ex.com/t/228164
(function(window, document) {
var interval = 800;
var closeDelay = 200;
var index = 0;
var couponLinks;
var getCoupon = function() {
if (index >= couponLinks.length) {
console.log(“领取完毕”);
window.once();
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);
}
once();
步骤五 敲一下回车,慢慢等待就行了,优惠卷太多,真心得领一阵子
领了好久,估计用不上……