function Fsj(){
var btns = new Array();
var j = 0;
this.init=function(){
var links= document.getElementsByTagName("a");
for(var i=0;i<links.length;i++){
if (links[i].getAttribute("class")=="W_addbtn" && links[i].getAttribute("item-func") == "addFollow"){
btns[j] = links[i];
j++;
}
}
};
/**/
var index = 0;
this.follow=function(){
if (index <= btns.length-1){
console.log("No."+(index+1));
btns[index].click();
index++;
}else{
clearInterval(timer);
}
};
this.init();
var timer = setInterval("this.follow();",6000);
console.log("sum:"+(j+1));
}
FireFox 13+FireBug 测试通过,刷粉丝需要到某个用户的粉丝界面,间隔时间可以调整。