Created
October 7, 2019 09:23
-
-
Save antonellopasella/3470482cb294c178d3fdfbba4240d2a6 to your computer and use it in GitHub Desktop.
Unfollow bulk linkedin in vanilla JS
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
setInterval( function() { | |
window.scrollBy(0,-1000); | |
setTimeout( function(){ | |
window.scrollBy(0, 1500); | |
var buttons = document.getElementsByTagName('button'); | |
for( i = 0; i < buttons.length; i++) { | |
if(buttons[i].className.indexOf('is-following') > 0) { | |
buttons[i].click(); | |
} | |
} | |
}, 500) | |
}, 2000 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment