Bulk accept LinkedIn invitation

Xiaoyu
Jun 22, 2020

--

LinkedIn used to have this function, but now I cannot bulk accept all the invites. Yes I don’t have time to read all the LinkedIn invitation and messages, sorry….

Go to your browser developer console and paste below in the console. Stole from here

var x = document.querySelectorAll('.invitation-card__action-btn.artdeco-button — secondary'); 
for (var i=0 ; i<x.length; i++) x[i].click();

LinkedIn now will rate limit you with 429, hehe, just need to sleep a 500ms :)

var x = document.querySelectorAll('.invitation-card__action-btn.artdeco-button--secondary'); 
for (var i = 0 ; i < x.length; i++) {
setTimeout(acceptInvite(x[i]), 500);
}
function acceptInvite(x) {
x.click();
}
CLEAN!
CLEAN!😁

This method can be extended to other sites as well, just inspect the element and match the button styles (class or styles)

--

--

Xiaoyu
Xiaoyu

Written by Xiaoyu

Jack of all trades, master of, well, Computer Science 🤓 My blog: https://blog.baozitraining.org/ My Youtube: https://www.youtube.com/baozitraining

No responses yet