Created
October 5, 2014 15:38
-
-
Save zivc/ae691da2e89dab8cb153 to your computer and use it in GitHub Desktop.
Invite all friends to an event on Facebook javascript
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
/* | |
Scroll to the bottom of the lazy loading list and then put this in your console | |
*/ | |
[].forEach.call( | |
document.querySelectorAll('.multiColumnCheckable.checkableListItem'), | |
function(friend) { | |
if (friend.className.indexOf('disabledCheckable')<0) { // check to make sure that they're not already invited | |
friend.click(); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It did not work - returned "undefined"
[].forEach.call(
document.querySelectorAll('.multiColumnCheckable.checkableListItem'),
function(friend) {
if (friend.className.indexOf('disabledCheckable')<0) { // check to make sure that they're not already invited
friend.click();
}
}
);
undefined