Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abhisheksarkar30/56be12e1f6692b5baadc61a1545c1a95 to your computer and use it in GitHub Desktop.
Save abhisheksarkar30/56be12e1f6692b5baadc61a1545c1a95 to your computer and use it in GitHub Desktop.
Withdraw all pending sent invitations from LinkedIn automatically in bulk. Usage: - Go to https://www.linkedin.com/mynetwork/invitation-manager/sent/ - Open DevInspector, paste the script to the console, hit Enter to execute the script and the desired action.
var button1 = document.getElementsByClassName("invitation-card__action-btn artdeco-button artdeco-button--muted artdeco-button--3 artdeco-button--tertiary ember-view")
var button2 = document.getElementsByClassName("artdeco-modal__confirm-dialog-btn artdeco-button artdeco-button--2 artdeco-button--primary ember-view")
setInterval(()=>{
for(var i=0;i<button1.length;i++){
button1[i].click()
while(button2.length > 0) {
button2[0].click()
break
}
}},1000)
@abhisheksarkar30
Copy link
Author

Works like charm, Feb, 2021.

Now we are talkin'

Glad to see it being much useful to you. :)

@linkinsunil
Copy link

Working well as on 30th April 2021. Thanks, @abhisheksarkar30.

@abhisheksarkar30
Copy link
Author

@linkinsunil thanks and glad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment