initial commit
This commit is contained in:
10
background.js
Normal file
10
background.js
Normal file
@@ -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"
|
||||||
|
}]);
|
||||||
|
});
|
||||||
10
manifest.json
Normal file
10
manifest.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
suppress.js
Normal file
1
suppress.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
window.alert = function() {};
|
||||||
Reference in New Issue
Block a user