A Tampermonkey userscript that replaces the Hamilton Township School District calendar's tedious filter UI with a clean floating panel.
The HTSD calendar requires you to:
- Click a school name to expand it and reveal its checkbox <---this is a P.I.T.A.
- Uncheck the schools you don't want <---this is a P.I.T.A.
- Repeat for every single school <---this is a P.I.T.A.
- Click "Update Calendar"
There are over 20 schools, this is terrible a terrible UX and we can do better. This script replaces that entire flow with two clicks.
- Injects a floating panel in the top-right corner of the calendar page
- Step 1 expands all school categories and loads every available calendar into a checklist inside the panel
- Step 2 applies your selection — the script clicks the site's own checkboxes in sequence and fires Update Calendar automatically
- Selections are adjustable on the fly without reloading the page
- Reset calendar to default wipes localStorage, sessionStorage, and site cookies, then reloads — useful when the site holds onto a cached filter state between visits
- Install Tampermonkey for your browser. Remember to "Allow Userscripts" in the Manage Extension menu"
- Click the raw view of
htsd-calendar-filter-v9.user.jsin this repo or just Click here to auto install if Tampermonkey is already installed on your browser. - Tampermonkey will detect the userscript and prompt you to install it
- Click Install
- Visit the HTSD calendar page
- Click Step 1 — Load schools in the floating panel
- Check the schools you want to see
- Click Step 2 — Apply filter
The calendar will update to show only your selected schools. You can adjust your selection and click Step 2 again at any time without reloading.
If you want specific schools checked by default when the panel loads, edit the MY_SCHOOLS array near the top of the script:
const MY_SCHOOLS = ['Grice', 'Sunnybrae'];Add any name fragment that matches the school's calendar name. The match is case-insensitive.
"No checkboxes found" after clicking Step 1 Scroll the left sidebar up and down, then click Step 1 again. The site uses lazy loading and the checkboxes won't render until the sidebar has been scrolled.
Calendar looks blank after applying a filter The site may be holding onto a cached filter state. Click Reset calendar to default to wipe stored data and start fresh.
The panel is covering content I need to see The panel is draggable — click and drag the blue header to reposition it anywhere on the screen.
Tested in Chrome with Tampermonkey. Should work in any browser that supports Tampermonkey or Violentmonkey.
This script interacts with a Finalsite CMS calendar. If HTSD updates their calendar platform, selectors may need to be updated. The core approach — finding checkboxes by walking the DOM rather than relying on specific class names — is intentionally flexible to survive minor site updates.