Social Networks

How to Mass Unfollow on Twitter (Without App)

1. INTRODUCTION

Here I show you a very easy and quick way to no longer follow everyone on twitter without having to install an application.

You just have to copy and paste this queues in your browser console:

2. HOW TO UNFOLLOW EVERYONE ON TWITTER AUTOMATICALLY (CODE)

  1. Access your followers list on the web version of Twitter: twitter.com/YOUR_USER/following
  2. Open the browser console: Click right > Inspect > Sideboard .
  3. Paste this code and press Starter .
(() => { const $followButtons = '[data-testid$=»-unfollow»]'; const $confirmButton = '[data-testid=»confirmationSheetConfirm»]'; const retry = { count: 0, limit: 3, }; const scrollToTheBottom = () => window.scrollTo(0, document.body.scrollHeight); const retryLimitReached = () => retry.count === retry.limit; const addNewRetry = () => retry. count++; const sleep = ({ seconds }) => new Promise((proceed) => { console.log(`WAITING FOR ${seconds} SECONDS…`); setTimeout(proceed, seconds * 1000); }); const unfollowAll = async (followButtons) => { console.log(`UNFOLLOWING ${followButtons.length} USERS…`); await Promise.all( followButtons.map(async (followButton) => { followButton && followButton.click(); await sleep({ seconds: 1 }); const confirmButton = document.querySelector($confirmButton); confirmButton && confirmButton.click(); }) ); }; const nextBatch = async () => { scrollToTheBottom(); await sleep ({ seconds: 1 }); const followButtons = Array. from(document. querySelectorAll($followButtons) ); const followButtonsWereFound = followButtons. length > 0; if (followButtonsWereFound) { await unfollowAll(followButtons); await sleep({ seconds: 2 }); return nextBatch(); } else { addNewRetry(); } if (retryLimitReached()) { console.log(`NO ACCOUNTS FOUND, SO I THINK WE'RE DONE`); console.log(`RELOAD PAGE AND RE-RUN SCRIPT IF ANY WERE MISSED`); } else { await sleep({ seconds: 2 }); return nextBatch(); } }; nextBatch(); })();

3. REMARKS AND CLARIFICATIONS

  • Don't close or switch tabs while the code is doing its job. As soon as you do, it will stop working. It's okay if you quit accidentally, but you'll need to paste the code again to restart the process.

4. SCREENSHOT WITH STEPS TO FOLLOW

I think the steps are pretty clear, but just in case, I leave you this screenshot:

5. DOUBTS?

For any questions, you can leave a comment.

Similar items

Leave your comment

Your email address will not be published. Required fields are marked with *

Button back to top