QQ空间自动点赞代码

一、自动点赞

  1. 进入网页版的QQ空间
  2. 按F12,进入控制台console
  3. 复制、粘贴下面代码
var x=5,y=10;
function autoClick()
{
    y=y+10+Math.floor(Math.random()*10);
    var zan=document.getElementsByClassName('item qz_like_btn_v3');
    for(var i=0;i<zan.length;i++){
        if(zan[i].attributes[6].value=='like'){
            zan[i].firstChild.click();
        }
    };
    window.scrollBy(x,y);
}
 
window.setInterval(autoClick,500+Math.floor(Math.random()*100));//1000代表1秒屏幕下滑10px;
  1. 回车运行代码

二、点赞加评论

var x=5,y=10, i = 1;
var arr = ["[em]e10010[/em][em]e10087[/em][em]e10088[/em]~","[em]e10010[/em][em]e10087[/em][em]e10088[/em]","[em]e10010[/em][em]e10087[/em][em]e10088[/em]!","[em]e10010[/em][em]e10087[/em][em]e10088[/em]","[em]e10010[/em][em]e10087[/em][em]e10088[/em]","[em]e10010[/em][em]e10087[/em][em]e10088[/em]","[em]e10010[/em][em]e10010[/em][em]e10087[/em][em]e10088[/em]","[em]e10010[/em][em]e10010[/em][em]e10087[/em][em]e10088[/em]!","[em]e10010[/em][em]e10010[/em][em]e10087[/em][em]e10088[/em]","[em]e10010[/em][em]e10087[/em][em]e10088[/em][em]e10087[/em][em]e10088[/em]"];
function autoClick(){    	
    var zan=document.getElementsByClassName('item qz_like_btn_v3');
    var pinLun=document.getElementsByClassName('qz_btn_reply item');
    var textinput = document.getElementsByClassName('textinput textarea c_tx2')
    var evt_click = document.getElementsByClassName('btn-post gb_bt  evt_click')     	
	// 点击评论
    zan[i].firstChild.click();		
	pinLun[i].firstChild.click();
	textinput[1].innerHTML = arr[Math.floor(Math.random()*10)];
	evt_click[1].firstChild.click();
	i++;
	y = y+30;
    window.scrollBy(x,y);
}
window.setInterval(autoClick,2000 + Math.floor(Math.random()*1000));//1000代表1秒屏幕下滑10px;
posted @ 2022-04-21 08:40  MrFlySand-飞沙  阅读(2386)  评论(0编辑  收藏  举报