loading...

Unfollow non-followers on Twitter

jalbam profile image Joan Alba Maldonado Originally published at joanalbamaldonado.com on ・1 min read

Here is a JavaScript code to stop following those ones who are not following you back on Twitter and keeping those you want: https://gist.github.com/jalbam/d7678c32b6f029c602c0bfb2a72e0c26

This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working).

Instructions:

  1. The code may need to be modified depending on the language of your Twitter web site:
    • For English language web site, no modification needed.
    • For Spanish language web site, remember to set the variable ‘LANGUAGE’ to “ES”.
    • For another language, remember to set the variable ‘LANGUAGE’ to that language and modify the ‘WORDS’ object to add the words in that language.
  2. Optionally, you can edit the ‘SKIP_USERS’ array to insert those users that you do not want to unfollow (even if they are not following you back).
  3. When the code is fine, on Twitter web site, go to the section where it shows all the people you are following (https://twitter.com/YOUR\_USERNAME\_HERE/following).
  4. Once there, open the JavaScript console (F12 key, normally), paste all the code there and press enter.
  5. Wait until you see it has finished. If something goes wrong, reload the page and repeat from the step 3 again.

NOTE: STILL NOT SURE ABOUT THE TEXT IN THE CONFIRMATION BUTTON FOR ENGLISH LANGUAGE. LET ME KNOW OR MODIFY IT BY YOURSELF TO THE CORRECT ONE IF NEEDED!

Gist by Joan Alba Maldonado: https://gist.github.com/jalbam/d7678c32b6f029c602c0bfb2a72e0c26

Thank you very much. Any comments are welcome.

Posted on by:

Discussion

markdown guide
 

This is doing basically the same as dev.to/jaimezjacinto/unfollow-thos... and the arguments against it are the same.

Unfollowing people because they don't follow you back means that you're not interested in what that person has to say.

But you follow people because you're interested in what they have to say...

What you're trying to do makes Twitter a worse place, and is generally bad for everyone's social mental health.

 

Automated unfollowing is against the Twitter automation rules, and scripting or scraping the website is against the terms of service.

 

Thank you for your message. The script is just for doing what any Twitter user could do manually but expending much more time. But if it is against their rules, use it at your own risk!