|
1 | 1 | { |
2 | | - "manifest_version": 3, |
| 2 | + "{{chrome}}.manifest_version": 3, |
| 3 | + "{{firefox}}.manifest_version": 2, |
3 | 4 | "name": "HyperChat [Improved YouTube Chat]", |
4 | 5 | "version": "0.0.0", |
5 | 6 | "homepage_url": "https://livetl.app/hyperchat", |
|
11 | 12 | "permissions": [ |
12 | 13 | "storage" |
13 | 14 | ], |
14 | | - "host_permissions": [ |
| 15 | + "{{chrome}}.host_permissions": [ |
15 | 16 | "https://www.youtube.com/live_chat*", |
16 | 17 | "https://www.youtube.com/live_chat_replay*", |
17 | 18 | "https://studio.youtube.com/live_chat*", |
|
25 | 26 | "https://studio.youtube.com/live_chat*", |
26 | 27 | "https://studio.youtube.com/live_chat_replay*" |
27 | 28 | ], |
28 | | - "js": [ |
| 29 | + "{{chrome}}.js": [ |
29 | 30 | "scripts/chat-injector.ts" |
30 | 31 | ], |
| 32 | + "{{firefox}}.js": [ |
| 33 | + "scripts/mv2/chat-injector.ts" |
| 34 | + ], |
31 | 35 | "css": [ |
32 | 36 | "stylesheets/titlebar.css" |
33 | 37 | ], |
|
47 | 51 | "all_frames": true |
48 | 52 | } |
49 | 53 | ], |
50 | | - "{{firefox}}.background": { |
51 | | - "scripts": ["scripts/chat-background.ts"] |
52 | | - }, |
53 | 54 | "{{chrome}}.background": { |
54 | 55 | "service_worker": "scripts/chat-background.ts" |
55 | 56 | }, |
56 | | - "action": { |
| 57 | + "{{firefox}}.background": { |
| 58 | + "scripts": ["scripts/mv2/chat-background.ts"], |
| 59 | + "persistent": true |
| 60 | + }, |
| 61 | + "{{chrome}}.action": { |
57 | 62 | "default_icon": { |
58 | 63 | "48": "assets/logo-48.png", |
59 | 64 | "128": "assets/logo-128.png" |
60 | 65 | }, |
61 | 66 | "default_popup": "options.html" |
62 | 67 | }, |
63 | | - "web_accessible_resources": [ |
| 68 | + "{{firefox}}.browser_action": { |
| 69 | + "default_icon": { |
| 70 | + "48": "assets/logo-48.png", |
| 71 | + "128": "assets/logo-128.png" |
| 72 | + }, |
| 73 | + "default_popup": "options.html" |
| 74 | + }, |
| 75 | + "{{chrome}}.web_accessible_resources": [ |
64 | 76 | { |
65 | 77 | "resources": ["*"], |
66 | 78 | "matches": ["<all_urls>"] |
67 | 79 | } |
68 | 80 | ], |
| 81 | + "{{firefox}}.web_accessible_resources": [ |
| 82 | + "*" |
| 83 | + ], |
69 | 84 | "options_ui": { |
70 | 85 | "page": "options.html", |
71 | 86 | "open_in_tab": true |
|
0 commit comments