Last active
December 30, 2020 10:00
-
-
Save nijatmursali/28fe4a2c545a0071e3f05663062cff86 to your computer and use it in GitHub Desktop.
Just a simple script to withdraw all pending connection / friend requests in LinkedIn.
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
/* | |
WEB VERSION | |
*/ | |
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() | |
button2[0].click()}},1000) | |
/* | |
MOBILE VERSION | |
*/ | |
var button1 = document.getElementsByClassName("rect-btn rect-btn_muted_tertiary rect-btn_muted rect-btn_regular ripple invite-card-withdraw-btn js-withdraw-invite-btn js-rect-btn") | |
var button2 = document.getElementsByClassName("rect-btn rect-btn_tertiary rect-btn_regular ripple primary-action js-rect-btn") | |
setInterval(()=>{ | |
for(var i=0;i<button1.length;i++){ | |
button1[i].click() | |
button2[0].click()}},1000) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment