Skip to content

Instantly share code, notes, and snippets.

@Bogidon
Last active May 6, 2018 23:05
Show Gist options
  • Save Bogidon/b44e66fd38967419e610 to your computer and use it in GitHub Desktop.
Save Bogidon/b44e66fd38967419e610 to your computer and use it in GitHub Desktop.
Facebook group friend requester
// To use this script just go to the members page of the desired facebook group and run it in your web console.
// This script may cease to work in the future. If it does you'll probably just need to change the name of the class.
// I got a warning at about 200 requsts. There's a built in limit of 101 friend requests per run and a rate limiter. Don't know if it had any impact on how quickly I got warned.
// Use at your own risk.
var allButtons = document.getElementsByClassName("uiIconText addButton");
var i = allButtons.length - 1;
function slowLoop() {
allButtons[i].click();
if (i < allButtons.length) {
i--;
setInterval(function() {
slowLoop()
}, Math.floor((Math.random() * 5000) + 3000));
}
}
slowLoop();
@Bogidon
Copy link
Author

Bogidon commented Dec 21, 2014

Haha, yes it is. Although I'm sure there's got to be a better way then trying to fool captcha.

@Bogidon
Copy link
Author

Bogidon commented Dec 21, 2014

Ok, this gist has problems. Leaving it up, but don't expect it to work too well.

@romeoOraajkumar
Copy link

working dude

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