See comments section for more up-to-date versions of the script. The original script is from 2014 and will not work as is.
- Open news feed preferences on your Facebook menu (browser)
- Click people or pages
- Scroll down (or click see more) until your full list is loaded
- Run the script in your browser console
Facebook will block this feature for you while you use it, depending on how much entities you try to unfollow. It automatically unblocks in a couple of hours and you will be able to continue.
Unfollowing friends, pages and groups is only half of the story
I have a huuuuge list of People that I still follow, because whenever I sent a friend request that was not accepted, it still automatically followed that profile.
URL: https://www.facebook.com/{{your ID or name}}/following
Or navigating on Desktop: Open facebook.com > Top left: Click your own Name to open your own profile > Click the More Dropdown next to Posts, About, Likes
You now see a ton of people you follow, but which are NOT your friends, if some of your friend requests in the past were left unanswered. I found no way to unfollow them programmatically via javascript, because the unfollow button only appears dynamically after hovering over the profile.
And ideas?