Skip to content

Instantly share code, notes, and snippets.

@ajinabraham
Last active June 27, 2021 18:46
Show Gist options
  • Save ajinabraham/104b0d6df604b58d3cf49112c0495e0f to your computer and use it in GitHub Desktop.
Save ajinabraham/104b0d6df604b58d3cf49112c0495e0f to your computer and use it in GitHub Desktop.
//Head on to https://www.linkedin.com/mynetwork/invitation-manager/
//In browser console
var buttons = document.getElementsByTagName('button')
for (let i = 0; i < buttons.length; i++) {
var aria = buttons[i].getAttribute("aria-label")
if (aria && aria.startsWith("Accept")) {
buttons[i].click()
console.log(aria)
}
}
@ajinabraham
Copy link
Author

ezgif com-gif-maker

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