Skip to content

Instantly share code, notes, and snippets.

@bhavaniravi
Created August 13, 2020 05:57
Show Gist options
  • Save bhavaniravi/20fdea15201005a84b1eb675bae61cee to your computer and use it in GitHub Desktop.
Save bhavaniravi/20fdea15201005a84b1eb675bae61cee to your computer and use it in GitHub Desktop.
Linkedin accept invitation or unfollow
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