-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmanifest.json
94 lines (94 loc) · 2.59 KB
/
manifest.json
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"manifest_version": 3,
"name": "Cerebr",
"version": "2.1.4",
"description": "Cerebr - 智能AI聊天助手",
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
},
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"permissions": [
"storage",
"commands",
"scripting",
"activeTab",
"tabs",
"webRequest"
],
"host_permissions": ["<all_urls>", "file:///*"],
"action": {
"default_title": "打开 Cerebr 侧边栏",
"default_icon": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
},
"commands": {
"toggle_sidebar": {
"suggested_key": {
"default": "Alt+Z",
"windows": "Alt+Z",
"mac": "MacCtrl+Z"
},
"description": "打开/关闭 Cerebr 侧边栏"
},
"clear_chat": {
"suggested_key": {
"default": "Alt+X",
"windows": "Alt+X",
"mac": "MacCtrl+X"
},
"description": "清空聊天记录"
}
},
"background": {
"service_worker": "background.js",
"type": "module"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["lib/pdf.js", "content.js"],
"run_at": "document_start"
}
],
"web_accessible_resources": [
{
"resources": [
"index.html",
"src/main.js",
"sidebar.css",
"lib/marked.min.js",
"lib/highlight.min.js",
"lib/github-dark.css",
"lib/mathjax-config.js",
"lib/tex-chtml-full.js",
"lib/pdf.js",
"lib/pdf.worker.js",
"lib/fonts/woff-v2/MathJax_AMS-Regular.woff",
"lib/fonts/woff-v2/MathJax_Calligraphic-Regular.woff",
"lib/fonts/woff-v2/MathJax_Fraktur-Bold.woff",
"lib/fonts/woff-v2/MathJax_Fraktur-Regular.woff",
"lib/fonts/woff-v2/MathJax_Main-Bold.woff",
"lib/fonts/woff-v2/MathJax_Main-Regular.woff",
"lib/fonts/woff-v2/MathJax_Math-BoldItalic.woff",
"lib/fonts/woff-v2/MathJax_Math-Italic.woff",
"lib/fonts/woff-v2/MathJax_Size1-Regular.woff",
"lib/fonts/woff-v2/MathJax_Size2-Regular.woff",
"lib/fonts/woff-v2/MathJax_Size3-Regular.woff",
"lib/fonts/woff-v2/MathJax_Size4-Regular.woff",
"lib/fonts/woff-v2/MathJax_Typewriter-Regular.woff",
"lib/fonts/woff-v2/MathJax_Vector-Bold.woff",
"lib/fonts/woff-v2/MathJax_Vector-Regular.woff",
"lib/fonts/woff-v2/MathJax_Zero.woff",
"statics/image.png"
],
"matches": ["<all_urls>"]
}
]
}