如何实现qq空间批量点赞
怎么实现qq空间批量点赞
纯粹为了好玩!!
逻辑很简单
1 打开浏览器console;输入以下代码。
先上添加赞的代码
最后运行tools.addSupport(); 即可添加赞。
在运行 tools.cancelAllSupport();
即可删除所有赞!!
纯粹为了好玩!!
逻辑很简单
1 打开浏览器console;输入以下代码。
先上添加赞的代码
var tools={}; //添加所有赞 function init(){ document.body.scrollTop=10000; setTimeout(function(){document.body.scrollTop=0;},2000);//加载更多并且等待 // alert('please wait for a minute . maybe 10 seconds'); } function addSupport (){ // document.body.scrollTop=10000; // setTimeout(function(){document.body.scrollTop=0;alert('稍等一下')},1000);//加载更多并且等待 // init() var a=document.getElementsByClassName('qz_like_btn_v3') //hide the comment lists var commentList=document.getElementsByClassName('comments-list'); for(var i=0;i<commentList.length;i++){ commentList[i].style.height=0+'px'; commentList[i].style.overflow='hidden' } for(var i=a.length-1;i>=0;i--) if(a[i].innerText.indexOf('取消赞')==0|| a[i].getAttribute('data-islike')=='1' ) console.log('已经赞了'); else { a[i].click(); // a[i].click(); } // alert('已经赞完了') } tools.addSupport=addSupport; function cancelAllSupport(){ //取消所有赞 // init(); var t=confirm('are u really want to cancel All the Support?'); if(!t) return; else{ var a=document.getElementsByClassName('qz_like_btn_v3') var commentList=document.getElementsByClassName('comments-list'); for(var i=0;i<commentList.length;i++){ commentList[i].style.height=0+'px'; commentList[i].style.overflow='hidden' } for(var i=0;i<a.length;i++) if( a[i].getAttribute('data-islike')=='1') a[i].click();; alert('已经取消所有赞了') } } tools.cancelAllSupport=cancelAllSupport;
最后运行tools.addSupport(); 即可添加赞。
在运行 tools.cancelAllSupport();
即可删除所有赞!!