Created
August 9, 2016 13:32
-
-
Save Sid3y1/19bd3e0bde70c0c6180e953ac9d84d56 to your computer and use it in GitHub Desktop.
Linkedin : Click “Connect” puis changement de page
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
a=function(){ | |
b= document.querySelectorAll('a.primary-action-button'); | |
for(var i =0; i < b.length; i++) { | |
if(b[i].innerHTML =="Connect"){ | |
b[i].click(); | |
console.log(b[i]); | |
} | |
} | |
nbr = document.querySelector('li.active').innerHTML; | |
nbr++; | |
document.querySelector('a[data-li-page="'+nbr+'"]').click(); | |
} | |
c=setInterval(a,2000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment