Initial Commit

This commit is contained in:
2026-07-17 15:05:16 -03:00
commit c95f3725d2
2 changed files with 30 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
chrome.commands.onCommand.addListener((command) => {
if (command === "toggle-mute") {
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
if (!tabs || !tabs[0]) return
const tab = tabs[0];
const isMuted = tab.mutedInfo ? tab.mutedInfo.muted : false;
chrome.tabs.update(tab.id, { muted: !isMuted });
});
}
});
+20
View File
@@ -0,0 +1,20 @@
{
"manifest_version": 3,
"name": "CtrlMute",
"version": "1.0",
"description": "A basic toggle mute extension.",
"permissions": [
"tabs"
],
"background": {
"service_worker": "background.js"
},
"commands": {
"toggle-mute": {
"suggested_key": {
"default": "Ctrl+M"
},
"description": "Toggle mute for the current tab"
}
}
}