Skip to content

Instantly share code, notes, and snippets.

@nijatmursali
Last active December 30, 2020 10:00
Show Gist options
  • Save nijatmursali/28fe4a2c545a0071e3f05663062cff86 to your computer and use it in GitHub Desktop.
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.
/*
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