Skip to content

Instantly share code, notes, and snippets.

@saranrapjs
Created March 30, 2021 01:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save saranrapjs/f8700e33332ae4a13a931e761fc262a7 to your computer and use it in GitHub Desktop.
Save saranrapjs/f8700e33332ae4a13a931e761fc262a7 to your computer and use it in GitHub Desktop.
vax4nyc calendar refresher so you don't have to click
(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