Skip to content

Instantly share code, notes, and snippets.

@heyJordanParker
Created May 25, 2017 15:39
Show Gist options
  • Select an option

  • Save heyJordanParker/f0811e0675193375a7d47c76acb4382a to your computer and use it in GitHub Desktop.

Select an option

Save heyJordanParker/f0811e0675193375a7d47c76acb4382a to your computer and use it in GitHub Desktop.
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