Skip to content

Instantly share code, notes, and snippets.

@khaosdoctor
Last active February 3, 2022 09:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khaosdoctor/2487e7e77375cc3de4b465e1d250ff5e to your computer and use it in GitHub Desktop.
Save khaosdoctor/2487e7e77375cc3de4b465e1d250ff5e to your computer and use it in GitHub Desktop.
Simple script (cloned from @ErickWendel) that accepts all friends in linkedin
// 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