From 283524abd9a78c32098a33ce15d16862da8f1d73 Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Fri, 27 Feb 2026 13:25:04 -0500 Subject: [PATCH] initial commit --- background.js | 10 ++++++++++ manifest.json | 10 ++++++++++ suppress.js | 1 + 3 files changed, 21 insertions(+) create mode 100644 background.js create mode 100644 manifest.json create mode 100644 suppress.js diff --git a/background.js b/background.js new file mode 100644 index 0000000..baae201 --- /dev/null +++ b/background.js @@ -0,0 +1,10 @@ +chrome.runtime.onInstalled.addListener(async () => { + await chrome.scripting.unregisterContentScripts({ ids: ["suppress-alert"] }).catch(() => {}); + await chrome.scripting.registerContentScripts([{ + id: "suppress-alert", + matches: ["https://calendar.google.com/*"], + js: ["suppress.js"], + runAt: "document_start", + world: "MAIN" + }]); +}); diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..84b8feb --- /dev/null +++ b/manifest.json @@ -0,0 +1,10 @@ +{ + "manifest_version": 3, + "name": "Suppress GCal Alerts", + "version": "1.0", + "permissions": ["scripting"], + "host_permissions": ["https://calendar.google.com/*"], + "background": { + "service_worker": "background.js" + } +} diff --git a/suppress.js b/suppress.js new file mode 100644 index 0000000..a955a2e --- /dev/null +++ b/suppress.js @@ -0,0 +1 @@ +window.alert = function() {};