Skip to content

Instantly share code, notes, and snippets.

@frandemona
Last active February 8, 2023 19:33
Show Gist options
  • Select an option

  • Save frandemona/c5f72bdde6f8333a704a34b1afad9ba2 to your computer and use it in GitHub Desktop.

Select an option

Save frandemona/c5f72bdde6f8333a704a34b1afad9ba2 to your computer and use it in GitHub Desktop.
Decline Startup School Co-Founder Match Invitations
let interval = setInterval(function () {
const spanDecline = Array.from(document.querySelectorAll("button.CFMInbox-MuiButtonBase-root.CFMInbox-MuiButton-root.CFMInbox-MuiButton-disableElevation > span.CFMInbox-MuiButton-label")).find(el => el.textContent === 'Decline');
if(!spanDecline) {
clearInterval(interval);
return;
}
console.log(spanDecline);
spanDecline.parentNode.click();
const listOfParticipants = Array.from(document.querySelectorAll('#b78978f311b3b616df6c96720e110c5a > div > div.css-1kq89qe > div.css-19du4nb button'));
if(listOfParticipants.length !== 0) {
listOfParticipants[1].click();
}
}, 6000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment