Created
March 30, 2021 01:54
-
-
Save saranrapjs/f8700e33332ae4a13a931e761fc262a7 to your computer and use it in GitHub Desktop.
vax4nyc calendar refresher so you don't have to click
This file contains 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
(function check() { | |
// they have hijacked document.querySelector/getElementById/etc but not document.all | |
Array.from(document.all).filter(el => el.nodeName.toLowerCase() === 'lightning-button-icon')[0].click(); | |
setTimeout(() => { | |
Array.from(document.all).filter(el => el.name === 'today')[0].click(); | |
setTimeout(() => { | |
const none = /check back/.test(Array.from(document.all).filter(el => el.className === 'appointment-section')[0].textContent) | |
console.warn('none', none) | |
if (none && !window.stoppy) setTimeout(check, 200); | |
}, 8000) | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment