Unfollow all on Twitter with Javascript

unfollow all on twitter scriptFolks have been asking me lately if it is possible to have a script run to unfollow all on their Twitter account.  But how to unfollow all on Twitter is a tricky subject.  Can you really unfollow all on Twitter without having to pay a website?  Well, yes it is possible, heck with Javascript and a console, pretty much anything is possible.  Below is a small line of source code that you can paste into your Chrome Javascript console and this will do the trick of unfollowing everybody.

I’m sure you have plenty of reasons to mass unfollow people, but don’t forget that Twitter does have its own set of guidelines of automation.  Although Twitter says that they don’t have an upper bound on follow/unfollow actions permitted, however they disallow bulk, automated, and aggressive follow/unfollow behavior.

Finally, how to unfollow all on Twitter – The script

So the script is from JamieMason called unfollow.js.  What you need to do to get it to work is this:

Go to https://twitter.com/following

Keep scrolling to the bottom until all of your followers are loaded.

Go to the Javascript console in Chrome and paste this in and press enter:

[].slice.call(document.querySelectorAll(‘stream-container .unfollow-text’)).forEach(function(button) {
button.click();
});

 

Let this thing run for a bit and you should be good to go.