Last active
February 22, 2021 14:58
-
-
Save dieudv/1eb9adcc064367dad481726667a905f2 to your computer and use it in GitHub Desktop.
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
/** | |
* AUTO CONNECT | |
* Go to https://www.linkedin.com/mynetwork/ => Press F12 -> Console -> Paste | |
*/ | |
setInterval(() => { | |
Array.from(document.querySelectorAll('button[data-control-name="invite"]')).forEach((button) => button.click()); | |
window.scrollTo(0, document.body.scrollHeight); | |
}, 5000); | |
/** | |
* AUTO ACCEPT | |
* Go to https://www.linkedin.com/mynetwork/invitation-manager/ => Press F12 -> Console -> Paste | |
*/ | |
var itv = setInterval(() => { | |
var btn = document.getElementsByClassName("invitation-card__action-btn artdeco-button artdeco-button--2 artdeco-button--secondary ember-view"); | |
if (btn !== null) { | |
btn[0].click(); | |
} else { | |
clearInterval(itv); | |
} | |
}, 1000); | |
/** | |
* AUTO WITHDRAW | |
* Go to https://www.linkedin.com/mynetwork/invitation-manager/sent/ => Press F12 -> Console -> Paste | |
*/ | |
var itv = setInterval(() => { | |
var btn1 = document.getElementsByClassName("invitation-card__action-btn artdeco-button artdeco-button--muted artdeco-button--3 artdeco-button--tertiary ember-view")[0]; | |
if (btn1 !== undefined) { | |
btn1.click(); | |
var btn2 = document.getElementsByClassName("artdeco-modal__confirm-dialog-btn artdeco-button artdeco-button--2 artdeco-button--primary ember-view")[0]; | |
btn2.click(); | |
} else { | |
clearInterval(itv); | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment