Skip to content

Instantly share code, notes, and snippets.

@guiliredu
Last active May 3, 2024 21:49
Show Gist options
  • Save guiliredu/ef83ac2c81452a7116956f3fd73b406d to your computer and use it in GitHub Desktop.
Save guiliredu/ef83ac2c81452a7116956f3fd73b406d to your computer and use it in GitHub Desktop.
Facebook - Script to auto invite people who liked a page post do like the 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();
}
}
}

How to use

  • 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(); } } }
@andrecostamarques
Copy link

Is there anyway to invite someone whom liked a page your not the owner?

@netusipt
Copy link

netusipt commented Aug 23, 2021

I highly recommend this browser extension - Firefox, Chrome, Edge.
It saves me so much time and it's free.

@Shurshik
Copy link

I highly recommend this browser extension - Firefox, Chrome, Edge.
It saves me so much time and it's free.

I can see the malware there. THis extension was just uploaded. DO NOT USE IT. Just search on google and use famous extensions released years ago with thousands on downloads, you will be more secure.

@netusipt
Copy link

It's not malware. Look at the reviews on Firefox. I developed this extension. I build it primarily for my own use. Recently I decided to share it with others. It's just another option. Download whatever extension you want. Just saying it's not malware, it works and it's free. Actually, all extensions are reviewed before they are published. Here's my website - https://likeinviter.herokuapp.com/

@Shurshik
Copy link

It's not malware. Look at the reviews on Firefox. I developed this extension. I build it primarily for my own use. Recently I decided to share it with others. It's just another option. Download whatever extension you want. Just saying it's not malware, it works and it's free. Actually, all extensions are reviewed before they are published. Here's my website - https://likeinviter.herokuapp.com/

Reviews? There is 1 good review, lol! I don't see any sense to create own extension when there are many of them, for years. Also no sense to give the extension access to your own domain, it's not secure. Google checks extension but not enough. For me this is big no.

@piranhap
Copy link

2024 and wondering what everyone else is using ;-;

@Shurshik
Copy link

2024 and wondering what everyone else is using ;-;

I use this paid extension: https://www.invitelikecomment.com/en/ at the end it was better to pay and be sure the extension is safe, this link is here since 2019 and still works

@piranhap
Copy link

piranhap commented May 3, 2024

I understand but part of me feels like there's gotta be some free open-source version for a script, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment