Skip to content

Instantly share code, notes, and snippets.

@klaszlo8207
Created January 6, 2020 16:06
Show Gist options
  • Save klaszlo8207/5b02924ef5f693aaeea6f1e9933c3494 to your computer and use it in GitHub Desktop.
Save klaszlo8207/5b02924ef5f693aaeea6f1e9933c3494 to your computer and use it in GitHub Desktop.
Linkedin auto connect js script Firefox
/*
Navigate to:
https://www.linkedin.com/mynetwork/
then on Firefox press F12 and copy/paste this code + enter
*/
setInterval(() => {
var elems = document.querySelectorAll('[data-control-name="invite"]');
for(var i = 0; i<elems.length; i++) {
elems[i].click();
}
window.scrollTo(0, document.body.scrollHeight)
window.scrollTo(document.body.scrollHeight, 0)
window.scrollTo(0, document.body.scrollHeight)
}, 5e3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment