-
Notifications
You must be signed in to change notification settings - Fork 2
/
manifest.js
96 lines (94 loc) · 2.67 KB
/
manifest.js
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
95
96
let manifest = {
name: "NitSig: Sigarra, but Neater",
short_name: "NitSig",
description:
"A Neater Sigarra by improving its UI/UX experience and adding new features",
version: "1.0.4",
manifest_version: 3,
icons: {
16: "images/logo/logo-16.png",
32: "images/logo/logo-32.png",
48: "images/logo/logo-48.png",
128: "images/logo/logo-128.png",
},
content_security_policy: {
extension_pages: "script-src 'self'; object-src 'self';",
},
content_scripts: [
{
run_at: "document_start",
matches: ["https://sigarra.up.pt/feup/*"],
css: [
"css/components.css",
"css/simpler.css",
"css/custom.css",
"css/icons.css",
"css/teacherPage.css",
"css/classPage.css",
"css/profilePage.css",
"css/card.css",
"css/expandableCard.css",
],
},
{
run_at: "document_end",
matches: ["https://sigarra.up.pt/feup/*"],
js: ["dist/main.js"],
},
{
matches: ["*://sigarra.up.pt/*/web_page.inicial"],
css: ["css/homepage.css"],
},
{
matches: ["*://sigarra.up.pt/*/components"],
css: ["css/componentsPage.css"],
},
],
web_accessible_resources: [
{
resources: [
"css/components.css",
"css/main.css",
"css/custom.css",
"css/simpler.css",
"js/override-functions.js",
"css/icons.css",
"images/publicationWebsiteLogo/*",
"images/FEUP.svg",
"images/feup-map.svg",
"images/logo/*",
],
matches: ["https://sigarra.up.pt/*"],
},
],
host_permissions: ["https://sigarra.up.pt/*"],
action: {
default_icon: {
16: "images/logo/logo-16.png",
32: "images/logo/logo-32.png",
48: "images/logo/logo-48.png",
},
default_title: "NitSig",
default_popup: "index.html",
},
permissions: ["storage", "tabs", "cookies"],
};
export const MANIFEST_CHROME = {
...manifest,
background: {
service_worker: "background.js",
type: "module",
},
};
export const MANIFEST_FIREFOX = {
...manifest,
browser_specific_settings: {
gecko: {
id: "[email protected]",
update_url: "https://ni.fe.up.pt/nitsig/firefox/updates.json",
},
},
background: {
scripts: ["background.js"],
},
};