首先注明:这是我转载的!!!!转载的!!!!转载的!!!不过我测试了一下,可以用!附上原网址:https://www.v2ex.com/t/228164#reply170
程序员们是一个神秘的群体,他们经常在我们的生活中扮演着举足轻重的角色,然而我们却很少注意到他们。今天给大家分享一个小技巧,来自V2EX,原帖作者ianisme,功能是领光天猫双11所有优惠券,想必大家应该都是需要的。
一键领取天猫双11优惠券
天猫双11优惠券领取攻略
首先,我们要打开天猫双11主活动页面http://www.tmall.com/wow/act/14931/1111。
然后在一个地方点击右键,选择“审查元素”(现在基本上能叫浏览器的基本都有这个功能,最好在空白处点击右键吧,免得误选)。
在天猫活动页面使用审查元素
然后在弹出的菜单栏中选择“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);
回车开始干活。
最后,祝大家都能全部领取,另外,这个一键领取天猫双11优惠券的方法希望大家能尽快尝试,可能很快就会失效,为你的老婆孩子父母也应该操作一次,先领了再说。
菊部受审,版权所有丨如未注明,均为原创丨
转载请注明来源:http://www.jubushoushen.com/2982.html