-
-
Save tgmarinho/421ea08c1e107a77659bdc89ac87c139 to your computer and use it in GitHub Desktop.
Automate accept LinkedIn invitations 🤖
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if the page is PT-br change "Accept" to "Aceitar"