Skip to content

Instantly share code, notes, and snippets.

@BrittonWinterrose
Last active May 7, 2019 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrittonWinterrose/85dba01ad028693330b2c98029a0e07a to your computer and use it in GitHub Desktop.
Save BrittonWinterrose/85dba01ad028693330b2c98029a0e07a to your computer and use it in GitHub Desktop.
Bulk accept or reject linkedin invitations

Bulk Add / Reject Linked Invites

Click on the lovely “See all >” link. Scroll down the list of pending invitations page. You will see about 20 of pending invitation boxes. Click “-See more-” to show more the invitation boxes in the page. Click “-See more-” repeatedly until you feel it enough. All visible invitation boxes that you see in the page will be accepted automatically by the JavaScript code in the next step.

Open the Developer Panel

In Chrome, Press F12 in Windows or Option-Command-I in Mac, to open the Chrome Developer Panel. Click on the Console tab. It is the JavaScript console panel.

Accept Invites

Copy and paste the following codes by the > and press Enter to execute the code.

var x = document.getElementsByClassName('bt-invite-accept'); for (var i=0 ; i<x.length; i++) x[i].click();

That’s it. Browser is clicking all buttons for us. It takes about 2–3 seconds to complete. The number of pending invitation is swiftly reduce. You can see the changes on the page. Hoo ray~! No more accepting invitation buttons (aka works) to do.

Remove/Reject Invites

To reject all invitations at once, just use this code instead:

var x = document.getElementsByClassName('bt-invite-decline'); for (var i=0 ; i<x.length; i++) x[i].click();

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