Skip to content

Instantly share code, notes, and snippets.

@jjaimealeman
Forked from renestalder/README.md
Created October 9, 2021 21:25
Show Gist options
  • Save jjaimealeman/f4182d4350ad7f68cc739638a1079416 to your computer and use it in GitHub Desktop.
Save jjaimealeman/f4182d4350ad7f68cc739638a1079416 to your computer and use it in GitHub Desktop.
Unfollow all on Facebook

Facebook: Unfollow people and pages

  1. Open news feed preferences on your Facebook menu (browser)
  2. Click people or pages
  3. Scroll down (or click see more) until your full list is loaded
  4. 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.

See comments section for more up-to-date versions of the script. The original script is from 2017 and will not work as is.

var unfollowButtons = document.querySelectorAll('[data-followed="1"]'); for(var i=0;i<unfollowButtons.length;i++){ unfollowButtons[i].click(); } alert(unfollowButtons.length+' people are now unfollowed! ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment