Created
August 13, 2020 05:57
-
-
Save bhavaniravi/20fdea15201005a84b1eb675bae61cee to your computer and use it in GitHub Desktop.
Linkedin accept invitation or unfollow
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
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
function clickButton(classname){ | |
accept_buttons = document.getElementsByClassName(classname) | |
for(i=0; i<accept_buttons.length; i++){accept_buttons[i].click(); sleep(2000);} | |
} | |
clickButton(“follows-recommendation-card__follow-btn artdeco-button artdeco-button--tertiary artdeco-button--1 artdeco-button--fluid follow is-following ember-view”) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment