Created
June 20, 2024 15:03
-
-
Save acoyfellow/86b0fd50274fb421fe2d197f0609c2bd to your computer and use it in GitHub Desktop.
auto-follow on 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
/* | |
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