Skip to content

Instantly share code, notes, and snippets.

@ann0nip
Created November 7, 2022 15:24
Show Gist options
  • Save ann0nip/c9a33374f60b675f96abb04e6692e56f to your computer and use it in GitHub Desktop.
Save ann0nip/c9a33374f60b675f96abb04e6692e56f to your computer and use it in GitHub Desktop.
Automate accept LinkedIn invitations 🤖
(async () => {
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
const acceptButtons = document.querySelectorAll('[aria-label*="Accept"]');
for (const acceptButton of acceptButtons) {
acceptButton.click()
await sleep(2000);
}
})();
@ann0nip
Copy link
Author

ann0nip commented Nov 7, 2022

VIDEO: https://youtu.be/iicMLIwVtg8

Steps:

  1. Go to the invitations page: https://www.linkedin.com/mynetwork/invitation-manager/

  2. Open the developer console tool => (Ctrl+Shift+J(Windows) || ⌘+⌥+I (Mac os)).

  3. Copy the code and paste it into the console.

  4. Press Enter and wait.

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