Created
May 25, 2017 15:39
-
-
Save heyJordanParker/f0811e0675193375a7d47c76acb4382a to your computer and use it in GitHub Desktop.
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
| window.location.href = "https://www.linkedin.com/mynetwork/"; | |
| //Run separately or just go to the URL and run the script below | |
| setInterval( | |
| function() { | |
| var connectBtns = document.getElementsByClassName('mn-person-card__person-btn-ext button-secondary-medium'); | |
| console.log(connectBtns.length); | |
| for(var i=0; i < connectBtns.length; i++) { | |
| window.scrollBy(0, 400); | |
| console.log(connectBtns[i].parentNode.parentNode.children[0].children[1].children[0].children[1].textContent); | |
| connectBtns[i].click(); | |
| } | |
| }, | |
| 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment