-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathmanifest.js
More file actions
executable file
·73 lines (71 loc) · 1.78 KB
/
Copy pathmanifest.js
File metadata and controls
executable file
·73 lines (71 loc) · 1.78 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
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
export default (browser) => ({
manifest_version: 3,
version: "0.6.2",
name: "FACEIT to Leetify Demo Uploader by CSNADES.gg",
description:
"Automatically upload FACEIT match demos to Leetify. Made by CSNADES.gg",
browser_specific_settings:
browser === "firefox"
? {
gecko: {
id: "faceit-to-leetify@csnades.gg",
},
}
: undefined,
icons: {
48: "icon.48.png",
128: "icon.128.png",
},
content_scripts: [
{
matches: ["https://faceit.com/*", "https://www.faceit.com/*"],
js: ["/faceit/contentScript.js"],
css: ["styles.inject.css"],
},
{
matches: ["https://faceit.com/*", "https://www.faceit.com/*"],
js: ["/faceit/web.js"],
world: "MAIN",
},
{
all_frames: true,
matches: ["https://leetify.com/gcpd-extension-auth"],
js: ["leetify/auth/contentScript.js"],
},
{
matches: ["https://leetify.com/app/*"],
js: ["leetify/contentScript.js"],
css: ["styles.inject.css"],
},
],
background:
browser === "firefox"
? {
scripts: ["serviceWorker.js"],
}
: {
service_worker: "serviceWorker.js",
type: "module",
},
action: {
default_popup: "public/popup.html",
},
web_accessible_resources: [
{
resources: ["faceit/web.js", "styles.inject.css"],
matches: ["https://faceit.com/*", "https://www.faceit.com/*"],
},
],
externally_connectable:
browser === "chrome"
? {
ids: ["*"],
matches: [
"https://faceit.com/*",
"https://www.faceit.com/*",
"https://leetify.com/*",
],
}
: undefined,
permissions: browser === "chrome" ? ["offscreen", "storage"] : ["storage"],
});