Skip to content

Instantly share code, notes, and snippets.

@Sid3y1
Last active August 9, 2016 13:50
Show Gist options
  • Save Sid3y1/26751b38c63ab881b89576d7421f6970 to your computer and use it in GitHub Desktop.
Save Sid3y1/26751b38c63ab881b89576d7421f6970 to your computer and use it in GitHub Desktop.
linkedin growth hack connect to suggested contact filtered by keywords
// linkedin ciblé
var win=0;
var los=0;
a= function (){
var connectBtns = document.getElementsByClassName('bt-request-buffed');
for(var i =0; i < connectBtns.length; i++) {
d=connectBtns[i].parentNode.firstChild.firstChild.childNodes[1].firstChild.innerHTML.toLowerCase();
console.log(d);
if( d.indexOf("journaliste") >= 0 || d.indexOf("redacteur") >= 0 || d.indexOf("pigiste") >= 0 ){
win++;
console.log("Gagne (l/w = "+los+"/"+win+")");
connectBtns[i].click()
}else{
connectBtns[i].parentNode.childNodes[2].click();
los++;
console.log("Perdu (l/w = "+los+"/"+win+")");
}
}
document.getElementById('container').style.height = "1000px"; window.scrollTo(0,0);window.scrollTo(0,document.body.scrollHeight);
}
b=setInterval(a,5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment