Skip to content

Instantly share code, notes, and snippets.

@YDrall
Created January 13, 2024 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YDrall/77fad9e5dfe51deae5b9155a770e392f to your computer and use it in GitHub Desktop.
Save YDrall/77fad9e5dfe51deae5b9155a770e392f to your computer and use it in GitHub Desktop.
Bulk accept LinkedIn invites
// paste this script in the js console of https://www.linkedin.com/mynetwork/invitation-manager/ page and enjoy.
const sleep = (ms) => new Promise((res) => setTimeout(res, ms));
async function acceptAll () {
const items = document.querySelectorAll('button.artdeco-button--secondary');
for (var i=0 ; i<items.length; i++) {
const item = items[i];
console.log(item);
item.click();
await sleep(1000); // To avoid 499(too many request) errors.
};
}
acceptAll()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment