Skip to content

Instantly share code, notes, and snippets.

@abuxton
Forked from renestalder/README.md
Created October 8, 2021 11:03
Show Gist options
  • Save abuxton/3f940524f8b738cdbb76c1b8810b915c to your computer and use it in GitHub Desktop.
Save abuxton/3f940524f8b738cdbb76c1b8810b915c 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! ');
@abuxton
Copy link
Author

abuxton commented Oct 8, 2021

see updates in original comments on forked gist https://gist.github.com/renestalder/c5b77635bfbec8f94d28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment