Last active
May 6, 2018 23:05
-
-
Save Bogidon/b44e66fd38967419e610 to your computer and use it in GitHub Desktop.
Facebook group friend requester
This file contains hidden or 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
// 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(); |
Haha, yes it is. Although I'm sure there's got to be a better way then trying to fool captcha.
Ok, this gist has problems. Leaving it up, but don't expect it to work too well.
working dude
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The captcha is still annoying. This is why we need a client-side OCR.