Last active
February 3, 2022 09:14
-
-
Save khaosdoctor/2487e7e77375cc3de4b465e1d250ff5e to your computer and use it in GitHub Desktop.
Simple script (cloned from @ErickWendel) that accepts all friends in linkedin
This file contains hidden or 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
// Run this in the devtools console, inside the linkedin friend request list | |
// Make sure to have all the requests displayed in the screen | |
// If something goes funky, increase the sleep time. | |
itens = [] | |
document.querySelectorAll('.invitation-card__action-btn.artdeco-button--secondary').forEach(item => itens.push(item)) | |
sleep = ms => new Promise(resolve => setTimeout(resolve, ms)) | |
for (item of itens) { | |
item.click() | |
await sleep(500) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment