Skip to content

Instantly share code, notes, and snippets.

View StubbornlyDesigned's full-sized avatar

StubbornlyDesigned

View GitHub Profile
@StubbornlyDesigned
StubbornlyDesigned / facebook-mass-delete-group-members.js
Last active February 22, 2016 04:04 — forked from mayukojpn/facebook-mass-delete-group-members.js
This script goes through and removes all members from a Facebook group. Replace the ID in the second line with your own Facebook ID!!! Then navigate to the members tab of your group and copy/paste the entire code into the javascript console. Script tested in Chrome. Removes 10 members a minute!
var deleteAllGroupMembers = (function () {
var excludedFbIds = ['100005315525880']; /*########## Replace number between single quotes with your own Facebook ID. DO NOT REMOVE THE SINGLE QUOTES! ##########*/
var deleteAllGroupMembers = {};
var usersToDeleteQueue = [];
var scriptEnabled = false;
var processing = false;
var memberCount = document.getElementsByClassName('_5bv4')[0].lastChild;
deleteAllGroupMembers.start = function() {