20 lines
766 B
Markdown
20 lines
766 B
Markdown
# Suppress GCal Alerts
|
|
|
|
A minimal Chrome extension that silences `window.alert()` calls on Google Calendar.
|
|
|
|
## Files
|
|
|
|
- `manifest.json` — extension configuration
|
|
- `background.js` — registers the content script into the page's main JS context
|
|
- `suppress.js` — overrides `window.alert` with a no-op
|
|
|
|
## Installation
|
|
|
|
1. Clone or download this folder.
|
|
2. Go to `chrome://extensions` and enable Developer mode.
|
|
3. Click "Load unpacked" and select this folder.
|
|
|
|
## Notes
|
|
|
|
The script must run in the `MAIN` world (the page's own JS context) to override `window.alert` effectively. Declaring `world: "MAIN"` in `manifest.json` has a known Chrome bug and does not work reliably, so the content script is registered programmatically from the service worker instead.
|