I found this script to invite people who likes your page's post to like your page. The problem is, it just invites all the visible invite buttons. It has no option to click see more , choose a number to invite, add a time delay in between likes...etc... I had my invite feature temporarily disabled because of this after inviting about 1000 people. Someone, please add those features so we can share this with BHW for free.
Here's the code(found on Github):
var buttons;
buttons = document.getElementsByClassName('_42ft');
for (var i = 0; i < buttons.length; i++) {
if(buttons.getAttribute('ajaxify') != null){
if(buttons.getAttribute('ajaxify').indexOf('invite') != -1){
buttons.click();
}
}
}
Here's the code(found on Github):
var buttons;
buttons = document.getElementsByClassName('_42ft');
for (var i = 0; i < buttons.length; i++) {
if(buttons.getAttribute('ajaxify') != null){
if(buttons.getAttribute('ajaxify').indexOf('invite') != -1){
buttons.click();
}
}
}