-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmanifest.ts
50 lines (47 loc) · 1015 Bytes
/
manifest.ts
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
import type { Manifest } from 'webextension-polyfill';
import pkg from '../package.json';
const manifest: Manifest.WebExtensionManifest = {
manifest_version: 3,
name: pkg.displayName,
version: pkg.version,
icons: {
'48': 'logo48.png',
'128': 'logo128.png',
},
permissions: [
'tabs',
'contextMenus',
'notifications',
'storage',
'downloads',
'webRequest',
'webRequestBlocking',
],
host_permissions: ['<all_urls>'],
content_security_policy: {
extension_pages: "script-src 'self'; object-src 'self';",
},
background: {
scripts: ['background/index.js'],
type: 'module',
},
commands: {
open_detail: {
description: 'Open AriaNg',
},
},
action: {
default_popup: 'index.html',
default_title: 'Aria2Ex',
},
options_ui: {
page: 'index.html#/setting',
open_in_tab: true,
},
browser_specific_settings: {
gecko: {
id: '{9e3f5f09-a4c6-43c2-8715-cac81530a5ce}',
},
},
};
export default manifest;