Skip to content

Instantly share code, notes, and snippets.

@alexsoyes
Last active October 31, 2023 08:08
Show Gist options
  • Save alexsoyes/fc5a82fe092fac5f718d7e76760d8de0 to your computer and use it in GitHub Desktop.
Save alexsoyes/fc5a82fe092fac5f718d7e76760d8de0 to your computer and use it in GitHub Desktop.
Cocher les invitations en automatique pour un événement LinkedIn
if (typeof inviteInterval !== undefined) clearInterval(inviteInterval);
let inviteInterval = setInterval(invite, 3000);
function invite() {
document.querySelector("ul.artdeco-typeahead__results-list.ember-view > li:last-child").scrollIntoView();
const checkboxes = document.querySelectorAll(".ember-checkbox.ember-view");
checkboxes.forEach((checkbox) => {
if (!checkbox.checked) {
checkbox.click();
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment