How to auto follow people on Medium?

To auto follow people on Medium.com follow the next steps:

Latest Update:

Medium removed the Follow button from the list making this script unusable. :/

Step 1: Go to someone’s profile page

Once you are logged in to medium.com make sure you have found the person of interest.

Step 2: Click on the followers tab

Below the person’s info you will find the stats. Number of people that was followed by that author and the number of people that are following the author. Click on the Followers info.

Step 3: Open the Chrome console

 To open a Console and paste the code press Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac).

Step 4: Copy and paste the below code

Copy and paste the below code to “Console” tab.

// Medium: Follow 

// Updated: 2020-03-24
// This script is made for demonstrative purposes only. 
// Use at your own risk. 
// Respect the Medium’s policy and terms of use.

function initFollow(i) {
  setTimeout(function(){
    var txtUser = inputs[i].querySelector('.ui-captionStrong .link').innerHTML;
    var txtStat = inputs[i].querySelector('.button-defaultState').innerHTML;
    console.log(txtStat);
    if (txtStat=='Follow') {
      console.log('Follow: '+txtUser);
      inputs[i].querySelector('.js-followButton').click();
    } else {
      console.log('Skipping: '+txtUser);
    }
  }, Math.floor((Math.random() * 100000))+5);
}
var inputs = document.querySelectorAll('.streamItem.streamItem--userPreview');
for(var i=1; i<inputs.length;i++) {
  initFollow(i);
  console.log('Running...please wait...');
}

The script will start following users, driving the attention to your profile. 

Hi you! If the code is working, leave a comment below. It means a lot to everyone.

Buy me a coffeeWanna support the page?!

Did you like this? Share it!

9 comments on “How to auto follow people on Medium?

Not quite sure if this is still working

Hi, you were right. They changed the code but all good now. The script is updated.

Seems to be skipping everyone rather than actually following them

Hi,

Yes you are right. Medium removed the Follow button from the profiles so this script doesn’t have any point now. :/

HI MILOS, IT’S RUNNING (ON MY MAC) BUT SKIPPING PEOPLE THAT I’M NOT FOLLOWING. THANKS FOR DOING THIS BTW.

Hi, I just saw the update. You switched the IF. I updated the script but it should work OK anyway…

Wasn’t working for me. This seems to fix it:
function initFollow(i) {
setTimeout(function(){
var txtUser = inputs[i].querySelector(‘.ui-captionStrong .link’).innerHTML;
var txtStat = inputs[i].querySelector(‘.button-activeState’).innerHTML;

if (txtStat=’Follow’) {
console.log(‘Following: ‘+txtUser);
inputs[i].querySelector(‘.button–follow’).click();
} else {
console.log(‘Skipping: ‘+txtUser);
}
}, Math.floor((Math.random() * 100000))+5);
}
var inputs = document.querySelectorAll(‘.streamItem.streamItem–userPreview.js-streamItem’);
for(var i=1; i<inputs.length;i++) {
initFollow(i);
console.log('Running…please wait…');
}

Hey Milos, thanks for the script.
As 24th of june it’s skipping already following users, which makes sense. But not following not followed users. I think there is a problem on clicking “follow” link.

Can you please fix this, I really want to use this on Medium.

Thanks

I was able to get this working again with the following code

function initFollow(i) {
setTimeout(function(){
var txtUser = inputs[i].querySelector(‘.ui-captionStrong .link’).innerHTML;
var txtStat = inputs[i].querySelector(‘.button–follow’).innerText;

if (txtStat==’Follow’) {
console.log(‘Follow: ‘+txtUser);
inputs[i].querySelector(‘.button–follow’).click();
} else {
console.log(‘Skipping: ‘+txtUser);
}
}, Math.floor((Math.random() * 200000))+5);
}
var inputs = document.querySelectorAll(‘.streamItem.streamItem–userPreview.js-streamItem’);
for(var i=1; i<inputs.length;i++) {
initFollow(i);
console.log('Running…please wait…');
}

Leave Comment