From c62372dda262765a1f1db67a2e3f009129552dde Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 12 Jan 2025 10:54:28 -0500 Subject: [PATCH] Produce MV2 build for Firefox instead --- src/manifest.json | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index 481bbfa..7296462 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,5 +1,6 @@ { - "manifest_version": 3, + "{{chrome}}.manifest_version": 3, + "{{firefox}}.manifest_version": 2, "name": "HyperChat [Improved YouTube Chat]", "homepage_url": "https://livetl.app/hyperchat", "description": "Improved YouTube chat with CPU/RAM optimizations, customization options, and cutting-edge features!", @@ -36,24 +37,34 @@ "all_frames": true } ], - "{{firefox}}.background": { - "scripts": ["scripts/chat-background.ts"] - }, "{{chrome}}.background": { "service_worker": "scripts/chat-background.ts" }, - "action": { + "{{firefox}}.background": { + "scripts": ["scripts/chat-background.ts"], + "persistent": true + }, + "{{chrome}}.action": { + "default_icon": { + "48": "assets/logo-48.png", + "128": "assets/logo-128.png" + } + }, + "{{firefox}}.browser_action": { "default_icon": { "48": "assets/logo-48.png", "128": "assets/logo-128.png" } }, - "web_accessible_resources": [ + "{{chrome}}.web_accessible_resources": [ { "resources": [ "*" ], "matches": [ "" ] } ], + "{{firefox}}.web_accessible_resources": [ + "*" + ], "options_ui": { "page": "options.html", "open_in_tab": true