Project

General

Profile

Download (3 KB) Statistics
| Branch: | Tag: | Revision:

haketilo / manifest.json @ 7965f1b4

1
// SPDX-License-Identifier: CC0-1.0
2
//
3
// This is the manifest file of Haketilo.
4
//
5
// Copyright (C) 2021,2022 Wojtek Kosior <koszko@koszko.org>
6
//
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
#IF !MOZILLA && !CHROMIUM
17
#ERROR Target browser not selected! Please define 'MOZILLA' or 'CHROMIUM'.
18
#ENDIF
19

    
20
{
21
#IF MV2
22
    "manifest_version": 2,
23
#ELIF MV3
24
    "manifest_version": 3,
25
#ERROR Manifest version 3 is not yet supported! Please define 'MV2'.
26
#ELSE
27
#ERROR Manifest version not selected! Please define 'MV2'.
28
#ENDIF
29
    "name": "Haketilo",
30
    "short_name": "Haketilo",
31
    "version":
32
#IF CHROMIUM
33
    // Chromium requires version to "be between 1-4 dot-separated integers each
34
    // between 0 and 65536". Firefox does not impose such rules, hence, when we
35
    // make a beta release, we assign it the true version under Firefox
36
    // (e.g. "1.0-beta1") and a fake version with 1-lower major and maximal
37
    // allowed minor number under Chromium (e.g. 0.65536.1).
38
#INCLUDE_VERBATIM version_chromium
39
#ELSE
40
#INCLUDE_VERBATIM version
41
#ENDIF
42
    ,
43
    "author": "Wojtek Kosior & contributors",
44
    "description": "Control your \"Web\" browsing.",
45
#IF MOZILLA
46
    "applications": {
47
	"gecko": {
48
	    "id": "{6fe13369-88e9-440f-b837-5012fb3bedec}",
49
	    "strict_min_version": "60.0"
50
	}
51
    },
52
#ENDIF
53
    "icons":{
54
#COPY_FILE icons/haketilo128.png
55
	"128": "icons/haketilo128.png",
56
#COPY_FILE icons/haketilo64.png
57
	"64": "icons/haketilo64.png",
58
#COPY_FILE icons/haketilo48.png
59
	"48": "icons/haketilo48.png",
60
#COPY_FILE icons/haketilo32.png
61
	"32": "icons/haketilo32.png",
62
#COPY_FILE icons/haketilo16.png
63
	"16": "icons/haketilo16.png"
64
    },
65
    "permissions": [
66
	"webRequest",
67
	"webRequestBlocking",
68
	"tabs",
69
	"<all_urls>",
70
	"unlimitedStorage"
71
    ],
72
    "browser_action": {
73
	"browser_style": true,
74
	"default_icon": {
75
	    "128": "icons/haketilo128.png",
76
	    "64": "icons/haketilo64.png",
77
	    "48": "icons/haketilo48.png",
78
	    "32": "icons/haketilo32.png",
79
	    "16": "icons/haketilo16.png"
80
	},
81
	"default_title": "Haketilo",
82
	// Both popup.html and settings.html depend on file_preview.html.
83
#LOADHTML html/file_preview.html
84
#LOADHTML html/popup.html
85
	"default_popup": "html/popup.html"
86
    },
87
    "options_ui": {
88
#LOADHTML html/settings.html
89
	"page": "html/settings.html",
90
	"open_in_tab": true,
91
	"browser_style": false
92
    },
93
#IF CHROMIUM && MV2
94
#COPY_FILE dummy
95
    "web_accessible_resources": ["dummy"],
96
#ENDIF
97
    "background": {
98
	"persistent": true,
99
	"scripts": [
100
#LOADJS background/background.js
101
	]
102
    },
103
    "content_scripts": [
104
	{
105
	    "run_at": "document_start",
106
	    "matches": ["<all_urls>"],
107
	    "all_frames": true,
108
	    "js": [
109
#LOADJS content/content.js
110
	    ]
111
	}
112
    ]
113
}
(10-10/18)