- Open the facebook window with people yuo want to invite
- Copy the code and place on your browser url input OR open console and place
- To use in the browser url input, copy the code below:
javascript: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(); } } }
The code could be further simplified to this one-liner for the Chrome address bar.
Note that it won't work with a simple copy and paste into the address bar because Chrome blocks any string that starts with
javascript:
in the address bar. Select from the second character onward, manually type "j" in the address, paste in what you copied, and hit enter.javascript:(function() {Array.from(document.getElementsByClassName('_42ft')).map(function(x){x&&x.getAttribute('ajaxify')&&x.getAttribute('ajaxify').indexOf('invite')!=-1&&x.click();});})();