天猫双十一(双11)活动泥石流JS代码
2016/10
20
08:10
- $(‘.act-allin-kv-cat’).click();
- setTimeout(“clickAllCat()”,3050);
- var myTimer;
- function clickAllCat(){
- myTimer=setInterval(“clickCurCat()”,300);
- setTimeout(“goLottery()”,5000);
- }
- function clickCurCat(){
- try{
- var catArr = document.getElementsByClassName(“mui-cat”);
- for(var i=0;i<catArr.length;i++){
- if(catArr[i].style.top != “” && catArr[i].style.top != “-9999px”){
- document.getElementsByClassName(“mui-cat”)[i].click();
- document.getElementsByClassName(“mui-cat”)[i].style.top = “”;
- }
- }
- }
- catch(err){
- console.log(‘an error’);
- }
- }
- function clickCurCou(i){
- document.getElementsByClassName(“mui-result-coup-get getCoup”)[parseInt(i)].click();
- }
- function goLottery(){
- clearInterval(myTimer);
- var couArr = document.getElementsByClassName(“mui-result-coup-get getCoup”);
- for(var i=0;i<couArr.length;i++){
- setTimeout(“clickCurCou(” + i +”)”,800 + i*500);
- }
- setTimeout(“document.getElementsByClassName(\”mui-result-btn mui-result-btn-lottery\”)[0].click()”,4000);
- }
chrome浏览器打开http://2016allin.tmall.com/
F12 —> console – > 粘贴 回车
抽奖每天有次数限制,没注意几次,不过不超过10次,所以代码没做循环。
想再运行一次就复制
$(‘.act-allin-kv-cat’).click();
setTimeout(“clickAllCat()”,3050);
粘贴回车即可。
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From IT人生_IT一二三_iTrensheng_AiTi123_(已建13年)
Post Link: 天猫双十一(双11)活动泥石流JS代码
Post Link: 天猫双十一(双11)活动泥石流JS代码