Skip to content

Instantly share code, notes, and snippets.

View abhisheksarkar30's full-sized avatar
🎯
Focusing

Abhishek Sarkar abhisheksarkar30

🎯
Focusing
View GitHub Profile
@abhisheksarkar30
abhisheksarkar30 / WithdrawAllSentRequestsOnLinkedIn.js
Last active May 6, 2021 16:19
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)