Skip to content

Instantly share code, notes, and snippets.

@tgmarinho
Forked from ann0nip/index.js
Created April 11, 2023 12:36
Show Gist options
  • Save tgmarinho/421ea08c1e107a77659bdc89ac87c139 to your computer and use it in GitHub Desktop.
Save tgmarinho/421ea08c1e107a77659bdc89ac87c139 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);
}
})();
@tgmarinho
Copy link
Author

if the page is PT-br change "Accept" to "Aceitar"

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