1 |
4c6a2323
|
Wojtek Kosior
|
// SPDX-License-Identifier: CC0-1.0
|
2 |
|
|
//
|
3 |
2bd35bc4
|
Wojtek Kosior
|
// This is the manifest file of Haketilo.
|
4 |
|
|
//
|
5 |
4c6a2323
|
Wojtek Kosior
|
// Copyright (C) 2021,2022 Wojtek Kosior <koszko@koszko.org>
|
6 |
b590eaa2
|
Wojtek Kosior
|
//
|
7 |
|
|
// This program is free software: you can redistribute it and/or modify
|
8 |
|
|
// it under the terms of the CC0 1.0 Universal License as published by
|
9 |
|
|
// the Creative Commons Corporation.
|
10 |
|
|
//
|
11 |
|
|
// This program is distributed in the hope that it will be useful,
|
12 |
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
|
|
// CC0 1.0 Universal License for more details.
|
15 |
|
|
|
16 |
702eefd2
|
Wojtek Kosior
|
#IF !MOZILLA && !CHROMIUM
|
17 |
b590eaa2
|
Wojtek Kosior
|
#ERROR Target browser not selected! Please define 'MOZILLA' or 'CHROMIUM'.
|
18 |
|
|
#ENDIF
|
19 |
|
|
|
20 |
01937dc9
|
Wojtek Kosior
|
{
|
21 |
b590eaa2
|
Wojtek Kosior
|
#IF MV2
|
22 |
01937dc9
|
Wojtek Kosior
|
"manifest_version": 2,
|
23 |
b590eaa2
|
Wojtek Kosior
|
#ELIF MV3
|
24 |
|
|
"manifest_version": 3,
|
25 |
4c6a2323
|
Wojtek Kosior
|
#ERROR Manifest version 3 is not yet supported! Please define 'MV2'.
|
26 |
b590eaa2
|
Wojtek Kosior
|
#ELSE
|
27 |
|
|
#ERROR Manifest version not selected! Please define 'MV2'.
|
28 |
|
|
#ENDIF
|
29 |
2bd35bc4
|
Wojtek Kosior
|
"name": "Haketilo",
|
30 |
|
|
"short_name": "Haketilo",
|
31 |
4c6a2323
|
Wojtek Kosior
|
"version": "0.999",
|
32 |
8475676a
|
Wojtek Kosior
|
"author": "Wojtek Kosior & contributors",
|
33 |
b590eaa2
|
Wojtek Kosior
|
"description": "Control your \"Web\" browsing.",
|
34 |
|
|
#IF MOZILLA
|
35 |
|
|
"applications": {
|
36 |
|
|
"gecko": {
|
37 |
|
|
"id": "{6fe13369-88e9-440f-b837-5012fb3bedec}",
|
38 |
|
|
"strict_min_version": "60.0"
|
39 |
|
|
}
|
40 |
|
|
},
|
41 |
|
|
#ENDIF
|
42 |
01937dc9
|
Wojtek Kosior
|
"icons":{
|
43 |
b590eaa2
|
Wojtek Kosior
|
#COPY_FILE icons/haketilo128.png
|
44 |
2bd35bc4
|
Wojtek Kosior
|
"128": "icons/haketilo128.png",
|
45 |
b590eaa2
|
Wojtek Kosior
|
#COPY_FILE icons/haketilo64.png
|
46 |
2bd35bc4
|
Wojtek Kosior
|
"64": "icons/haketilo64.png",
|
47 |
b590eaa2
|
Wojtek Kosior
|
#COPY_FILE icons/haketilo48.png
|
48 |
2bd35bc4
|
Wojtek Kosior
|
"48": "icons/haketilo48.png",
|
49 |
b590eaa2
|
Wojtek Kosior
|
#COPY_FILE icons/haketilo32.png
|
50 |
2bd35bc4
|
Wojtek Kosior
|
"32": "icons/haketilo32.png",
|
51 |
b590eaa2
|
Wojtek Kosior
|
#COPY_FILE icons/haketilo16.png
|
52 |
2bd35bc4
|
Wojtek Kosior
|
"16": "icons/haketilo16.png"
|
53 |
01937dc9
|
Wojtek Kosior
|
},
|
54 |
|
|
"permissions": [
|
55 |
|
|
"webRequest",
|
56 |
|
|
"webRequestBlocking",
|
57 |
|
|
"tabs",
|
58 |
d1d5d4fb
|
Wojtek Kosior
|
"<all_urls>",
|
59 |
|
|
"unlimitedStorage"
|
60 |
01937dc9
|
Wojtek Kosior
|
],
|
61 |
|
|
"browser_action": {
|
62 |
|
|
"browser_style": true,
|
63 |
|
|
"default_icon": {
|
64 |
2bd35bc4
|
Wojtek Kosior
|
"128": "icons/haketilo128.png",
|
65 |
|
|
"64": "icons/haketilo64.png",
|
66 |
|
|
"48": "icons/haketilo48.png",
|
67 |
|
|
"32": "icons/haketilo32.png",
|
68 |
|
|
"16": "icons/haketilo16.png"
|
69 |
01937dc9
|
Wojtek Kosior
|
},
|
70 |
2bd35bc4
|
Wojtek Kosior
|
"default_title": "Haketilo",
|
71 |
4c6a2323
|
Wojtek Kosior
|
#LOADHTML html/popup.html
|
72 |
|
|
"default_popup": "html/popup.html"
|
73 |
01937dc9
|
Wojtek Kosior
|
},
|
74 |
|
|
"options_ui": {
|
75 |
4c6a2323
|
Wojtek Kosior
|
#LOADHTML html/settings.html
|
76 |
|
|
"page": "html/settings.html",
|
77 |
|
|
"open_in_tab": true,
|
78 |
|
|
"browser_style": false
|
79 |
b590eaa2
|
Wojtek Kosior
|
},
|
80 |
|
|
#COPY_FILE dummy
|
81 |
96068ada
|
Wojtek Kosior
|
"web_accessible_resources": ["dummy"],
|
82 |
01937dc9
|
Wojtek Kosior
|
"background": {
|
83 |
c744eb0e
|
jahoti
|
"persistent": true,
|
84 |
b590eaa2
|
Wojtek Kosior
|
"scripts": [
|
85 |
4c6a2323
|
Wojtek Kosior
|
#LOADJS background/background.js
|
86 |
b590eaa2
|
Wojtek Kosior
|
]
|
87 |
01937dc9
|
Wojtek Kosior
|
},
|
88 |
|
|
"content_scripts": [
|
89 |
|
|
{
|
90 |
|
|
"run_at": "document_start",
|
91 |
|
|
"matches": ["<all_urls>"],
|
92 |
|
|
"all_frames": true,
|
93 |
b590eaa2
|
Wojtek Kosior
|
"js": [
|
94 |
4c6a2323
|
Wojtek Kosior
|
#LOADJS content/content.js
|
95 |
b590eaa2
|
Wojtek Kosior
|
]
|
96 |
01937dc9
|
Wojtek Kosior
|
}
|
97 |
|
|
]
|
98 |
|
|
}
|