Last active
December 25, 2024 07:00
-
-
Save jatinkrmalik/e4e8d1c04ff0d3e75d5254118ca25996 to your computer and use it in GitHub Desktop.
Bulk add everyone on "My Network" tab on LinkedIn
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
/*#### Bulk add everyone on "My Network" tab on LinkedIn with cooldown ####*/ | |
// ---==== Steps to use ====--- | |
// 1. Go to https://www.linkedin.com/mynetwork/invitation-manager/ | |
// 2. Open Dev Console in your browser. Google "how to open dev console in <your-browser-name> for instructions". | |
// 3. Type `allow pasting` in the console and press Enter to enable script pasting in Chrome (required as Chrome blocks pasting scripts by default). | |
// 4. Go to Console tab. | |
// 5. Paste the script below into the console window and press enter. | |
// 6. Configure coolDownTime as desired. | |
// 7. ???? | |
// 8. Profit | |
const coolDownTime = 500; // Cooldown time between clicks in milliseconds | |
const buttons = Array.from(document.querySelectorAll(".invitation-card__action-container button.artdeco-button--secondary")); | |
let index = 0; | |
function clickNextButton() { | |
if (index >= buttons.length) { | |
console.log("All invitations have been processed."); | |
return; | |
} | |
const button = buttons[index]; | |
button.click(); | |
console.log(`Accepted invitation ${index + 1} of ${buttons.length}.`); | |
index++; | |
setTimeout(clickNextButton, coolDownTime); | |
} | |
clickNextButton(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changelog
v1.1
v1.0