Auto Follower javascript with chrome console

in auto •  6 years ago  (edited)

/**

var count = 0;
var disable_button_count = 0;

function myFollower(){
while(true){
var my_hollow_el = document.getElementsByClassName("slim hollow secondary");//all label [mute,follow,unfollow]
for (element in my_hollow_el) {
var single_hollow_el = my_hollow_el[element];
if (single_hollow_el.innerHTML === "Follow") {
count++;
var who_is_follower = single_hollow_el.closest('tr').querySelectorAll("td")[1].querySelectorAll("tr a strong")[0].innerHTML;
var disable_button_count = document.getElementsByClassName("button tiny hollow float-right disabled").length;
single_hollow_el.click();
console.log(" Your follower's nick is " + who_is_follower);
}
}
if (disable_button_count > 0) {
console.log("Your follower's count: " + count);
console.log("Success Auto Follow");
return;
}
document.getElementsByClassName("button tiny hollow float-right")[0].click();
}
}
myFollower();//init

/**

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @nmc237! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You made your First Vote
You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!