This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var deleteAllGroupMembers = (function () { | |
var deleteAllGroupMembers = {}; | |
// the facebook ids of the users that will not be removed. | |
// IMPORTANT: add your own facebook id here so that the script will not remove yourself! | |
var excludedFbIds = ['100009236033963','612270518']; // make sure each id is a string! | |
var usersToDeleteQueue = []; | |
var scriptEnabled = false; | |
var processing = false; | |
deleteAllGroupMembers.start = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Removes all members from a facebook Group using Javascript | |
// by C. Ernesto López | https://facebook.com/c.ernest.1990 | |
// Usage: First go to your Group, then go to Members, open the console (F12), paste the code and press ENTER | |
var groupid = document.getElementsByTagName('noscript')[0].innerHTML.split('/groups/')[1].split('/')[0]; | |
var items = document.getElementsByName('fb_dtsg'); | |
var fb_dtsg = items[ items.length - 1 ].value; | |
var y = 0; | |
var xhttp = new Array(); | |
for( var x=0;x<document.getElementsByClassName('_ohe').length;x++ ) { |