forked from Nitrino/easysubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.ts
executable file
·57 lines (55 loc) · 1.68 KB
/
manifest.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
56
57
import packageJson from "./package.json";
const manifest: chrome.runtime.ManifestV3 = {
manifest_version: 3,
name: "Easysubs",
version: packageJson.version,
description: packageJson.description,
options_page: "src/pages/options/index.html",
background: {
service_worker: "src/pages/background/index.js",
type: "module",
},
action: {
default_popup: "src/pages/popup/index.html",
default_icon: "icon-128.png",
},
icons: {
"128": "icon-128.png",
},
content_scripts: [
{
matches: [
"https://www.netflix.com/*",
"https://www.youtube.com/*",
"https://www.coursera.org/*",
"https://kinopub.net/*",
"https://kino.pub/*",
"https://kinopub.cc/*",
"https://app.plex.tv/*",
"https://plex.ukrapka.tech/*",
"https://www.udemy.com/course/*/learn/lecture/*",
"https://hd.kinopoisk.ru/*",
"https://www.amazon.de/Amazon-Video/*",
"https://www.primevideo.com/*",
"https://www.amazon.de/*/video/*",
"https://inoriginal.online/*",
],
js: ["src/pages/content/index.js"],
css: ["assets/css/contentStyle<KEY>.chunk.css"],
},
],
permissions: ["scripting", "tabs", "storage", "tts", "contextMenus", "activeTab"],
optional_host_permissions: ["*://*/*"],
optional_permissions: [],
host_permissions: ["https://translate.google.com/*", "http://localhost:8765/*"],
content_security_policy: {
extension_pages: "script-src 'self'; object-src 'self'",
},
web_accessible_resources: [
{
resources: ["assets/js/*.js", "assets/css/*.css", "icon-128.png", "icon-34.png"],
matches: ["*://*/*"],
},
],
};
export default manifest;