Skip to content

Instantly share code, notes, and snippets.

@dmlogv
Last active August 1, 2022 09:10
Show Gist options
  • Save dmlogv/7422f17592292561be7a0d5f03a344a2 to your computer and use it in GitHub Desktop.
Save dmlogv/7422f17592292561be7a0d5f03a344a2 to your computer and use it in GitHub Desktop.
Become a LinkedIn Hero
/*
- Open https://www.linkedin.com/mynetwork/invitation-manager/
- Open a Developer console
- Paste code below
- Run it :)
*/
document.querySelectorAll('.invitation-card__action-btn')
.forEach(n => n.innerText == 'Accept' && n.click());
/*
- Or create a bookmarklet:
*/
javascript:document.querySelectorAll('.invitation-card__action-btn').forEach(n => n.innerText == 'Accept' && n.click());void 0
/*
- Open https://www.linkedin.com/mynetwork/
- Scroll a page down
- Open a Developer console
- Paste code below
- Run it :)
*/
Array.from(document.querySelectorAll('.discover-fluid-entity-list .artdeco-button--secondary'))
.filter(n => n.innerText == 'Connect')
.sort(() => Math.random() - 0.5)
.slice(0, 20)
.forEach(n => n.click());
/*
- Or create a bookmarklet:
*/
javascript:Array.from(document.querySelectorAll('.discover-fluid-entity-list .artdeco-button--secondary')).filter(n => n.innerText == 'Connect').sort(() => Math.random() - 0.5).slice(0, 20).forEach(n => n.click());void 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment