Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brunoguerra/d1ce5c0148b295ca82f4104175d8090a to your computer and use it in GitHub Desktop.
Save brunoguerra/d1ce5c0148b295ca82f4104175d8090a to your computer and use it in GitHub Desktop.
Unfollow people for free on Twitter with Dev tools console
var count = 0;
function autoScrolling() {
var interval = 200;
window.scrollTo(0, document.body.scrollHeight);
$('.ProfileCard-content').each(function() {
var status = $(this)
.find('.FollowStatus')
.text();
var unfollowButton = $(this).find('.user-actions-follow-button');
if (status != 'Follows you') {
setTimeout(() => unfollowButton.click(), interval);
interval += 100;
console.log(status);
}
});
}
if (count <= 200) {
setInterval(autoScrolling, 10000);
count++;
}

Go to twitter.com/following

Open your console on your browser, paste and run this script by press [enter].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment