DEV Community

Desmond Gilmour
Desmond Gilmour

Posted on

1

Automate LinkedIn Invites To Be Withdrawn

All sales begin with Social selling

It's true. Most prospects you interact with nowadays will probably have seen your posts or posts from someone else from your company on LinkedIn. Now, similar to me, I'm guessing you are mass connecting with everyone and their mother from the company you are prospecting... eventually these connection requests begin adding up, and the next thing you know, you have over 2000 pending requests.

Luckily, you can automate the cleanup of these requests.

  1. Navigate to https://www.linkedin.com/mynetwork/invitation-manager/sent/

  2. Open the developer console (right-click and inspect and then choose the console tab)

  3. Enter this snippet of code into the console and wait

var firstButton = document.getElementsByClassName("invitation-card__action-btn artdeco-button artdeco-button--muted artdeco-button--3 artdeco-button--tertiary ember-view")

var secondButton = document.getElementsByClassName("artdeco-modal__confirm-dialog-btn artdeco-button artdeco-button--2 artdeco-button--primary ember-view")

setInterval(()=>{
    for(var i=0;i<firstButton.length;i++){
        firstButton[i].click()
        secondButton[0].click()
    }},1500)

Enter fullscreen mode Exit fullscreen mode

It should look something similar to this.

Console on LinkedIn

If you plan to continue your tasks, this code can run in the background. This code has helped me, whether I am mass-adding recruiters, prospects, or people at companies I would like to work for.

Good luck, and thank you for reading.

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay