I almost wrote a page for this, but it turns out a bookmarklet is good enough:
javascript:$('.js-follow-btn').click();undefined;
Make a bookmark, and set that as the URL. Then load up the page of people you’re following. Scroll down a bit so more of the users get loaded. Then click the bookmarklet. In a second, all the users will be unfollowed. Reload and start again.