Hello! This is a Javascript script that can be used to search CVS.com for an availability for the first dose appointment. To use the script as a Browser bookmark, follow these steps:
- Create a new bookmark in the bookmarks bar of your browser
- The bookmark title can be whatever, like “Search CVS”
- The URL has to be this (copy and paste the content below starting at "javascript:" ):
javascript: (function () { var timeout; function playLoudBeep() { var audio = new Audio( "https://media.geeksforgeeks.org/wp-content/uploads/20190531135120/beep.mp3" ); audio.play(); } function clickSearchButton() { const button = document.getElementsByClassName("search-icon")[0]; if (appointmentFound()) { playLoudBeep(); stopClickingButton(); return; } if (button) { button.click(); } timeout = setTimeout(clickSearchButton, 3000); } function startSearching() { clickSearchButton(); } function stopClickingButton() { clearTimeout(timeout); } function appointmentFound() { var content = document.body.textContent || document.body.innerText; var foundApptText = "available vaccines found"; var foundApptTextIsShowing = content.indexOf(foundApptText) !== -1; return foundApptTextIsShowing; } startSearching(); })();
- Save the bookmark
- Go to CVS Vaccine Scheduler and start the scheduling process
- You must fill out the screeing form: select no, no, no and continue (selecting yes for any option will make you ineligible at this time)
- Continue filling out the form
- You will eventually arrive at a page titled "Schedule dose" with a zipcode search input
- Enter your zipcode (or a nearby accessible zipcode) and click search
- If there are no available appointments, click once on your new bookmark
- The page will automatically start searching (you will see a updated content every time it searches)
- When an availability is found, the browser will stop searching and a loud "BEEP" sound will play. (sorry that the sound is so loud)