Open "Following" page on Twitter https://twitter.com/following scroll down till all following accounts showed in the browser. If you are following many accounts then you can place some heavy object on spacebar to scroll down automatically :)
Now open developer console(CTRL+SHIFT+C) on current page and paste below script on console tab.
$('.button-text.unfollow-text').trigger('click');
