Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrastudio/1ed73b244dd5e0e4dca4c853a5a3a51f to your computer and use it in GitHub Desktop.
Save andrastudio/1ed73b244dd5e0e4dca4c853a5a3a51f to your computer and use it in GitHub Desktop.
Auto Invite People Who Have Liked a Post in Your Facebook Page
var buttons;
buttons = document.getElementsByClassName('_42ft');
for (var i = 0; i < buttons.length; i++) {
if(buttons[i].getAttribute('ajaxify') != null){
if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){
buttons[i].click();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment