Automatically Unfollow Twitter Users who don’t Follow You Back

Have you followed users on Twitter and weren’t bothered if they followed you back or not?

That is until one day you look at your stats and find you have been following lots of users for whatever reason but very few users followed you back and you realise you now have a negative follow ratio and it can take a lot of time fix by removing non followers.

Please note that Twitter does not permit any automated or bulk following or unfollowing behavior!

Do read Twitters own ‘Following rules and best practices

The following method allows you to automatically & indiscriminately unfollow twitter followers who haven’t followed you back that are either inactive, can’t be bothered following you or likely to be fake.




REMEMBER THIS METHOD IS INDISCRIMINATE and will remove all non followers, plus you could get a slap on the wrist from Twitter.

It does not cost you nor do you have to sign-up to a premium service or tool.

The instructions to open JS Console is for Google Chrome users

The method is to use a little java script & the JS Console in DevTools. Don’t worry its not too difficult.

If you are unfamiliar with JS Console see here for JS Console tutorial

Steps

  1. Open your twitter profile in your browser and go to followers: https://twitter.com/following
  2. Then on your keyboard click ‘CTRL+SHIFT+J’ which open the JS Console in DevTools

You will then need to scroll down to the very last profile in your followers list.

This can take some time but you can use the auto-scroll java script below to automatically do it for you

Auto-Scroll Code

To auto-scroll to the bottom of the page, copy & paste the code below into the JS Console and hit enter.

Wait till it reaches the bottom of the page before continuing.

 

setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 2000);

 

Unfollow ALL Non Followers Code

Copy & paste the code below and hit enter to unfollow everyone who is not following you.

Update 20/01/2018 – This code works 

 

$('.ProfileCard-content').each(function(){
var status = $(this).find('.FollowStatus').text();
var unfollowButton = $(this).find('.user-actions-follow-button');
if(!status){unfollowButton.click();
}});

 

The code below, no longer works

$(‘.ProfileCard-content’).each(function(){var status = $(this).find(‘.FollowStatus’).text();var unfollowButton = $(this).find(‘.user-actions-follow-button’);if(status != ‘follows you’){unfollowButton.click();}});

 

 

 

It may seem the code is not doing anything .. but leave it run for some time and then refresh your twitter account to see the number of user you are following has decreased.

Need API or developer access to Twitter?

I believe in synergy skills for creating quicker, more efficient experiences in technology and workflows I am a Photo Restoration artist & SEO consultant specialising in small business and start-ups.

Leave a Comment

    • felix
    • September 24, 2018
    Reply

    how can i following all following of an account?

  1. Reply

    Thank you very much! This solution is AWESOME. I was not even aware of JS Tools in Chrome… and I’m a software dev. From now on, I’m solving all my problems in the JS Tools console! Thanks again, best post I’ve seen in a LONG time.

  2. Reply

    Wow! Thanks so much for this. It’s a shame Twitter doesn’t provide a service to do this easily as it would be really useful.

    • Reply

      Thanks Paul, I have a similar code for Instagram…I should have it posted in a few days

    • Mike
    • August 20, 2018
    Reply

    Hello Neil, I have been using your code and it works amazingly well. Thank you. It seems I cannot access it anymore. I have liked your Facebook, but still locked. Suggestions?

    • Michael
    • July 5, 2018
    Reply

    I receive a “Uncaught SyntaxError: Invalid or unexpected token” each time I have tried. Is the new code no longer working?

    • Reply

      Hi Michael, still works, there might have been a little jibberish in the code due to an issue with a plugin I removed but it the code is clean now if you try copy and paste again