nailuoGG
11/1/2016 - 3:28 AM

zhihu-unfollow.js


// var question = $('.zg-unfollow');

var question = $('[id*=pq]');

function unfollowBat(){
var question = $('.zg-btn-unfollow');
var length = question.length;
var number = 0;
for(var i = 0;i < length; i++){
    
setTimeout(function(){
if(number < length){
$(question[number]).trigger('click');
console.log('正在取关第'+ number + '个用户');
number ++ ;    
}else{
    console.log('已经取关完成')
}
},1500 * i);
}
}