-
Notifications
You must be signed in to change notification settings - Fork 8
/
manifest.json.ts
55 lines (53 loc) · 1.46 KB
/
manifest.json.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import type { ManifestV3Export } from "@crxjs/vite-plugin";
const manifest = ({
manifest_version: 3,
version: "<placeholder>",
name: "Holodex Plus",
description: "Holodex companion extension",
options_ui: {
page: "src/pages/options/index.html",
open_in_tab: false,
},
background: {
service_worker: "src/pages/background/index.ts",
type: "module",
},
action: {
// default_popup: "src/pages/popup/index.html",
default_icon: {
"32": "icon-32.png",
},
},
icons: {
"128": "icon-128.png",
},
permissions: [
"tabs",
"storage",
"contextMenus",
"webRequest", // unknown if still need.
"declarativeNetRequestWithHostAccess",
],
host_permissions: ["*://*.youtube.com/*", "*://*.holodex.net/*"],
content_scripts: [
// {
// matches: ["http://*/*", "https://*/*", "<all_urls>"],
// js: ["src/pages/content/index.tsx"],
// css: ["contentStyle.css"],
// },
{
matches: ["*://*.youtube.com/live_chat*"], js: ["src/pages/content/yt-chat/yt-chat.ts"], all_frames: true, run_at: "document_end",
}
],
web_accessible_resources: [
{
resources: ["contentStyle.css", "icon-128.png", "icon-32.png"],
matches: ["*://*.youtube.com/*", "*://*.holodex.net/*"],
},
],
// "devtools_page": "src/pages/devtools/index.html",
// "chrome_url_overrides": {
// "newtab": "src/pages/newtab/index.html"
// },
}) as const satisfies ManifestV3Export;
export default manifest;