Project

General

Profile

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

haketilo / manifest.json @ cf838016

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": "0.999",
32
    "author": "Wojtek Kosior & contributors",
33
    "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
    "icons":{
43
#COPY_FILE icons/haketilo128.png
44
	"128": "icons/haketilo128.png",
45
#COPY_FILE icons/haketilo64.png
46
	"64": "icons/haketilo64.png",
47
#COPY_FILE icons/haketilo48.png
48
	"48": "icons/haketilo48.png",
49
#COPY_FILE icons/haketilo32.png
50
	"32": "icons/haketilo32.png",
51
#COPY_FILE icons/haketilo16.png
52
	"16": "icons/haketilo16.png"
53
    },
54
    "permissions": [
55
	"webRequest",
56
	"webRequestBlocking",
57
	"tabs",
58
	"<all_urls>",
59
	"unlimitedStorage"
60
    ],
61
    "browser_action": {
62
	"browser_style": true,
63
	"default_icon": {
64
	    "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
	},
70
	"default_title": "Haketilo",
71
	// Both popup.html and settings.html depend on file_preview.html.
72
#LOADHTML html/file_preview.html
73
#LOADHTML html/popup.html
74
	"default_popup": "html/popup.html"
75
    },
76
    "options_ui": {
77
#LOADHTML html/settings.html
78
	"page": "html/settings.html",
79
	"open_in_tab": true,
80
	"browser_style": false
81
    },
82
#IF CHROMIUM && MV2
83
#COPY_FILE dummy
84
    "web_accessible_resources": ["dummy"],
85
#ENDIF
86
    "background": {
87
	"persistent": true,
88
	"scripts": [
89
#LOADJS background/background.js
90
	]
91
    },
92
    "content_scripts": [
93
	{
94
	    "run_at": "document_start",
95
	    "matches": ["<all_urls>"],
96
	    "all_frames": true,
97
	    "js": [
98
#LOADJS content/content.js
99
	    ]
100
	}
101
    ]
102
}
(10-10/16)