Skip to content

Instantly share code, notes, and snippets.

@xavadu
Last active May 25, 2018 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xavadu/69cdedc77c440c4b7282011b35258386 to your computer and use it in GitHub Desktop.
Save xavadu/69cdedc77c440c4b7282011b35258386 to your computer and use it in GitHub Desktop.
MeetUp RSVP auto attendance
// RSVP auto attendance IA bot quantum processor compumundohipermegared
// Run the code in the main event page with the extension, when the RSVP be enabled you automatically will be mark as going
// https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija/related?hl=en
const rsvpBtn = document.getElementsByClassName('rsvpIndicator-rsvp-yesButton')[0];
const interval = setInterval(() => {
if (rsvpBtn.className.indexOf('disabled') == -1) {
rsvpBtn.click();
clearInterval(interval);
console.log('YAYYH!! RSVP Done!!');
} else {
// Refresh
console.log('Disabled RSVP refreshing..')
document.location.href = document.location.href;
}
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment