Skip to content

Instantly share code, notes, and snippets.

@acoyfellow
Created June 20, 2024 15:03
Show Gist options
  • Save acoyfellow/86b0fd50274fb421fe2d197f0609c2bd to your computer and use it in GitHub Desktop.
Save acoyfellow/86b0fd50274fb421fe2d197f0609c2bd to your computer and use it in GitHub Desktop.
auto-follow on LinkedIn
/*
1) goto linked in
2) search for people. I did "founders" who i'm 2 degrees away from, in a specific geo location.
3) Copy and paste this script on each page
*/
async function autoFollow() {
const buttons = document.querySelectorAll("[aria-label*='Invite']");
for (let i = 0; i < buttons.length; i++) {
buttons[i].click();
await new Promise(resolve => setTimeout(resolve, 320));
const sendButton = document.querySelector("[aria-label='Send without a note']");
if (sendButton) {
sendButton.click();
}
await new Promise(resolve => setTimeout(resolve, 1000));
}
}
autoFollow();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment