We use chrome into the day cat Double 11 activity page, http://www.tmall.com/wow/act/14931/1111, anywhere right mouse button, select the review element, click Console,
Right button, review element
Click Console, then copy the following code in the blanks and press ENTER. If there is a preferential product, don't worry about it.
(function (window, document, undefined) {var interval = 800; Var closeDelay
= 200;
var index = 0;
var couponlinks;
Var getcoupon = function () {if (index >= couponlinks.length) {
Console.log ("collect complete");
Return
} var coponlink = couponlinks[index];
Coponlink.click (); index++;
Console.log ("Receive " + index + " Zhang");
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 ("Total:" + couponLinks.length + "coupon to be collected ...");
Getcoupon ();
} else {document.body.scrolltop = _scrolltop;}}, 500); ) (window, document);
And get all the coupons!