浏览器控制台

 

ia=document.getElementsByTagName("a");console.log(ia[3]);console.log(ia[5]);ia[30].click();var t=30; for(var ii=0;ii<t;ii++){ia[ii].click();}

 

 

 

 

<a href="javascript:void(0);" class="W_btn_b6 W_fr" action-data="type=followed&amp;refer_lflag=10201_" wforce="0" uid="24493" action-type="follow" suda-data="key=tblog_search_user&amp;value=user_feed_3_follow"><em title="关注" class="W_ficon ficon_add S_ficon">+</em>关注</a>

 

      1. 62a.W_linkb
      2. 63a.W_linkb
      3. 64a.W_linkb
      4. 65a
      5. 66a.W_btn_b6.W_fr
      6. 67a.W_texta.W_fb
      7. 68a.W_linkb
      8. 69a.W_linkb
      9. 70a.W_linkb
      10. 71a.W_linkb
      11. 72a
      12. 73a.W_btn_b6.W_fr
      13. 74a.W_texta.W_fb
      14. 75a.W_linkb
      15. 76a.W_linkb
      16. 77a.W_linkb
      17. 78a.W_linkb
      18. 79a.W_linkb
      19. 80a.searchBtn
      20. 81a.W_fr.change.W_btn_b6
      21. 82a.history_txt.W_texta
      22. 83a.W_close_color.W_texta
      23. 84a.history_txt.W_texta
      24. 85a.W_close_color.W_texta
      25. 86a.ico_service
      26. 87a
      27. 88a
      28. 89a
      29. 90a
      30. 91a
      31. 92a
      32. 93a
      33. 94a.S_txt2
      34. 95a.S_txt2
      35. 96a.W_gotop.S_ficon_bg
      36. 97a.btn_a
      37. 98a.btn_b
      38. 99a.mini_btn_area.pause_state
    1. [100 … 120]
    2. __proto__HTMLCollection
 
 
 
 var ia=document.getElementsByTagName("a");var t=500; for(var ii=10;ii<t;ii++){var it=ia[ii]; try{var itc=it.action-type;if(6>2){console.log(itc)} }catch(err){};}
 
 
 

var ia=document.getElementsByTagName("a");var t=270; for(var ii=50;ii<t;ii++){var it=ia[ii]; try{var itc=it.href;if(itc=="javascript:void(0);"){console.log(it);console.log(ii);setTimeout(it.click(),Math.ceil(Math.random()*3000));} }catch(err){};}

 

 
 
 
 
var ia=document.getElementsByTagName("a");var t=500; for(var ii=0;ii<t;ii++){var it=ia[ii]; try{var itc=it.href;if(itc=="javascript:void(0);"){console.log(it);console.log(ii);setTimeout(it.click(),Math.ceil(Math.random()*3000));} }catch(err){};}
 
 
 
 
 
var ia=document.getElementsByTagName("a");var t=270; for(var ii=50;ii<t;ii++){var it=ia[ii]; try{var itc=it.href;if(itc=="javascript:void(0);"){console.log(it);console.log(ii);setTimeout(it.click(),Math.ceil(Math.random()*3000));} }catch(err){};}

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
var ispan=document.getElementsByTagName("span");for(var ii=0;ii<300;ii++){try{it=ispan[ii];console.log(it);console.log(it.lastChild);setTimeout(it.click(),Math.ceil(Math.random()*6000));}catch(err){}};
 
 
var ispan=document.getElementsByTagName("span");for(var ii=0;ii<20;ii++){ try{it=ispan[ii];console.log(it);console.log(it.lastChild);setTimeout(function(){if(ii%20==0){ setTimeout(window.scrollTo(0,document.body.clientHeight),Math.ceil(Math.random()*60));  };ispan[ii].click();},  Math.ceil(Math.random()*6*1000));}catch(err){} };
 

 

 

https://weibo.cn/123/fans

 function mcg(i){console.log(i);};;var ia=document.getElementsByTagName("a");var len=ia.length;for(var i=0;i<len;i++){var it=ia[i];try{itnv=it.firstChild.nodeValue;if(itnv.indexOf("注")>0 && itnv.indexOf("已")<0 && 21>3){if(31>5){setTimeout(it.click(),Math.ceil(Math.random()*1000*6*5));}};}catch(err){}};

 

 
 
 

function mcg(i){console.log(i);};var ia=document.getElementsByTagName("a");var len=ia.length;for(var i=0;i<len;i++){var it=ia[i];try{ithref=it.href;ittxt=it.text;if(ithref.indexOf("javascript:;")>=0 && ittxt.indexOf("+关注")>=0){mcg(i);mcg(it);if(i%3==0){continue;};if(31>5){setTimeout(it.click
(),Math.ceil(Math.random()*1000*60*10));}};}catch(err){};};

 

 

 

 

function sleep(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > exitTime) return; } };function clg(i){console.log(i);};for(i=0;i<Math.ceil(Math.random()*50);i++){sleep(1000);window.scrollTo(0,document.body.scrollHeight)};{}ia=document.getElementsByTagName("a");len=ia.length;for(i=0;i<len;i++){if(i%(Math.ceil(Math.random()*10))==0){continue;};ii=ia[i];;try{ittxt=ii.text;iihf=ii.href;if(ittxt.indexOf("关注")>=0 && ittxt.indexOf("已")<0 &&  iihf.length==0){clg(ii);clg(i);sleep(Math.ceil(Math.random()*1000*0.03));ii.click();};}catch(err){};};

 

 

 function sleep(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > exitTime) return; } };function clg(i){console.log(i);};for(i=0;i<Math.ceil(Math.random()*50);i++){sleep(Math.ceil(Math.random()*1000*10));window.scrollTo(0,document.body.scrollHeight)};{}ia=document.getElementsByTagName("a");len=ia.length;for(i=0;i<len;i++){if(i%(Math.ceil(Math.random()*10))==0){continue;};ii=ia[i];;try{ittxt=ii.text;iihf=ii.href;if(ittxt.indexOf("关注")>=0 && ittxt.indexOf("已")<0 && iihf.length==0){clg(ii);clg(i);sleep(Math.ceil(Math.random()*1000*0.03));ii.click();};}catch(err){};};

 

 

 

function gen_random_int(max) {
return Math.ceil(Math.random() * max)
}
function sleep(numberMillis) {
var now = new Date()
var exitTime = now.getTime() + numberMillis
while (true) {
now = new Date()
if (now.getTime() > exitTime) return
}
}
function sleep_max(max) {
numberMillis = gen_random_int(max)
sleep(numberMillis)
}
function c(i) {
console.log(i)
}
var ia = document.getElementsByClassName("ficon_add")


var len = ia.length
for (var i = 0; i < len; i++) {
var it = ia[i]
try {
var itint = parseInt(ia[i].parentNode.parentNode.parentNode.parentNode.getElementsByClassName("count")[2].outerText)

} catch (err) {
c(err)
continue
}

// 过滤图片恶意用户
if (itint < 60) {
continue
}
try {
sleep_max(20)
it.click()
} catch (err) {
c(err)
}

}

 

 

 

posted @ 2018-01-20 01:05  papering  阅读(353)  评论(0编辑  收藏  举报