LinkedIn Automatically Accept All Invitations JS

With this Snippet you can easily accept all open contact requests. It collectsand  clicks automatically all “Accept” buttons with the class “invitation-card__action-btn” which are visible at the time you are firing this function. You may fire it twice as the first run will not collect invitations which are loaded after the first run (e.g. page 2 or ajax load).

accept all linkedin invites automatically with javascript
 var buttons = document.getElementsByClassName('invitation-card__action-btn');

 for(var i = 0; i < buttons.length; i++)  
     buttons[i].click();

WHERE TO PLACE THIS CODE?

Open your browser console, paste it and run it by clicking your “enter”-key.

Chrome Console shortcut:
Mac: Option + ⌘ + J
Windows / Linux: Shift + CTRL + J

Firefox Console Shortcut:
Mac: Shift + ⌘ + J
Windows / Linux: Shift + CTRL + J

Pleasure?

Please share your thumbsup, suggestions, edits, and questions within my comment section down there. 

I love posting snippets for you, but with a bit of feedback, it gets even more fun. 😀

Sharing is caring:

Share on xing
Share on linkedin
Share on whatsapp
Share on facebook
Share on twitter
Share on email

Leave a Reply

Your email address will not be published.