Automatically follow people from any steemit profile...

in #steemit7 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();
Sort:  

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

nice information keep it up

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

Coin Marketplace

STEEM 0.15
TRX 0.12
JST 0.025
BTC 55948.41
ETH 2523.83
USDT 1.00
SBD 2.31