Last active
May 25, 2018 10:32
-
-
Save xavadu/69cdedc77c440c4b7282011b35258386 to your computer and use it in GitHub Desktop.
MeetUp RSVP auto attendance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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