Unfollow everyone in bulk on twitter using only the browser

So someone hacked my twitter. Considering my password is random and huge, I am confused.
Anyway this left me a mess to clean up as the spammers followed thousands of people.
I had to unfollow them all.

I wrote a 1 line javascript to unfollow all twitter users.

Go to /following in twitter. Scroll to the bottom and make sure they are all loaded

The JS

$('.following[data-user-id]').each(function(user) { $(this).children("button.follow-button").click() });

Option A
1) paste the above in the URL bar and hit enter

Options B
1) press F12
2) click "Console" tab

WARNING. Your browser will freeze AND it will unsubscribe ALL visible users