Automatically follow people from any steemit profile...

in steemit •  7 years ago 

1. Go to any profile

2. Go to the followers page

3. Open Browser console by pressing F12 and paste the following code

4. Press Enter and you can see the follow button is being clicked

NOTE: This will automatically move to next page and continue clicking the follow button for all people in the list

    var followPeople = function() {
        var x = document.getElementsByClassName("button slim hollow secondary ");
        var i;
        var followCount = 0;
        for (i = 0; i < x.length; i++) {
            if (x[i].innerHTML === 'Follow') {
                followCount++;
                x[i].click();
            }
            if (i == x.length - 1) {
                if (followCount == 0) {
                    imdNextFollow();
                } else {
                    setTimeout(function() {
                        nexPage();
                    }, 20000);
                }
            }
        }
    }

    var nexPage = function() {
        setTimeout(function() {
            var y = document.getElementsByClassName("button tiny hollow float-right");
            y[0].click();
            setTimeout(function() {
                followPeople();
            }, 2000);
        }, 20000);
    };

    var imdNextFollow = function() {
        var y = document.getElementsByClassName("button tiny hollow float-right");
        y[0].click();
        setTimeout(function() {
            followPeople();
        }, 2000);
    }; 
    followPeople();
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:  

Thanks for nice script can we change some code to unfollow too ?

yep we can... will post that too in some time

Thanks @sundarrajan whenever you post send me the link in steemit chat :)

change this if (x[i].innerHTML === 'Follow') {

to if (x[i].innerHTML === 'Unfollow') {

Excellent post. Now if we can get some way to automatically unfollow people who does not follow back.

The first box in your text is empty:
1.Open new text document and paste the following code
There is no code!

It is showing for me, maybe it has something to do with a type of browser that is used, anyways you can copy it from here https://pastebin.com/hZGHYTFr :)

Nice post very informative

interesting

Well articulated

Great

Good

nice information keep it up

So many RPC Errors you must add delay in following at least 3 seconds.

How do I add the delay?

This code does not work

it does just follow instructions

Please shoot a video of how it works

  ·  6 years ago (edited)

Thanksful to @sundarrajan . we can interact with each other on steemit. Always welcome friends.