Project

General

Profile

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

haketilo / manifest.json @ cfe121e6

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
#IF CHROMIUM
32
    // Chromium requires version to "be between 1-4 dot-separated integers each
33
    // between 0 and 65536".
34
    "version": "0.65536.1",
35
#ELSE
36
    "version": "1.0-beta1",
37
#ENDIF
38
    "author": "Wojtek Kosior & contributors",
39
    "description": "Control your \"Web\" browsing.",
40
#IF MOZILLA
41
    "applications": {
42
	"gecko": {
43
	    "id": "{6fe13369-88e9-440f-b837-5012fb3bedec}",
44
	    "strict_min_version": "60.0"
45
	}
46
    },
47
#ENDIF
48
    "icons":{
49
#COPY_FILE icons/haketilo128.png
50
	"128": "icons/haketilo128.png",
51
#COPY_FILE icons/haketilo64.png
52
	"64": "icons/haketilo64.png",
53
#COPY_FILE icons/haketilo48.png
54
	"48": "icons/haketilo48.png",
55
#COPY_FILE icons/haketilo32.png
56
	"32": "icons/haketilo32.png",
57
#COPY_FILE icons/haketilo16.png
58
	"16": "icons/haketilo16.png"
59
    },
60
    "permissions": [
61
	"webRequest",
62
	"webRequestBlocking",
63
	"tabs",
64
	"<all_urls>",
65
	"unlimitedStorage"
66
    ],
67
    "browser_action": {
68
	"browser_style": true,
69
	"default_icon": {
70
	    "128": "icons/haketilo128.png",
71
	    "64": "icons/haketilo64.png",
72
	    "48": "icons/haketilo48.png",
73
	    "32": "icons/haketilo32.png",
74
	    "16": "icons/haketilo16.png"
75
	},
76
	"default_title": "Haketilo",
77
	// Both popup.html and settings.html depend on file_preview.html.
78
#LOADHTML html/file_preview.html
79
#LOADHTML html/popup.html
80
	"default_popup": "html/popup.html"
81
    },
82
    "options_ui": {
83
#LOADHTML html/settings.html
84
	"page": "html/settings.html",
85
	"open_in_tab": true,
86
	"browser_style": false
87
    },
88
#IF CHROMIUM && MV2
89
#COPY_FILE dummy
90
    "web_accessible_resources": ["dummy"],
91
#ENDIF
92
    "background": {
93
	"persistent": true,
94
	"scripts": [
95
#LOADJS background/background.js
96
	]
97
    },
98
    "content_scripts": [
99
	{
100
	    "run_at": "document_start",
101
	    "matches": ["<all_urls>"],
102
	    "all_frames": true,
103
	    "js": [
104
#LOADJS content/content.js
105
	    ]
106
	}
107
    ]
108
}
(10-10/16)