-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.json
More file actions
31 lines (31 loc) · 1.01 KB
/
Copy pathmanifest.json
File metadata and controls
31 lines (31 loc) · 1.01 KB
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
{
"manifest_version": 3,
"name": "GitHub HTML Attachment Preview",
"version": "0.1.0",
"description": "Preview .html/.htm attachments in GitHub PR/Issue comments in an isolated sandbox, without downloading.",
"permissions": ["storage", "tabs"],
"host_permissions": [
"https://github.com/*",
"https://*.githubusercontent.com/*"
],
"background": {
"service_worker": "src/background.ts",
"type": "module"
},
"content_scripts": [
{
"matches": [
"https://github.com/*/*/pull/*",
"https://github.com/*/*/issues/*"
],
"js": ["src/content.ts"],
"run_at": "document_idle"
}
],
"sandbox": {
"pages": ["src/sandbox.html"]
},
"content_security_policy": {
"sandbox": "sandbox allow-scripts; default-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:; connect-src 'none'; frame-src 'none'; child-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none';"
}
}