Skip to content

Instantly share code, notes, and snippets.

View dilhanchandrasiri's full-sized avatar

Dilhan Chandrasiri dilhanchandrasiri

View GitHub Profile
// Facebook makes it very difficult to bulk remove friends. This should help.
//
// The goal here was not to completely automate this process, but to automate
// like 85% of it so it would take minutes and not hours with a little bit of hand-holding.
//
// To get this to work:
// 1. Navigate to https://www.facebook.com/friends/list in Chrome
// 2. Open the inspector -> sources -> snippets
// 3. Dump this javascript below into a new snippet
// 4. If `DRY_RUN = true`, you'll see the names of your friends that *would* be deleted
// DISCLAIMER: This script automates actions on Facebook which may violate their Terms of Service.
// Use at your own risk. Aggressive use may result in temporary or permanent account restrictions.
// This is provided for educational purposes only.
// Facebook makes it very difficult to bulk remove friends. This should help.
//
// The goal here was not to completely automate this process, but to automate
// like 85% of it so it would take minutes and not hours with a little bit of hand-holding.
//
// To get this to work: