-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.js
executable file
·86 lines (83 loc) · 2.59 KB
/
manifest.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import fs from 'node:fs';
const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
/**
* After changing, please reload the extension at `chrome://extensions`
* @type {chrome.runtime.ManifestV3}
*/
const manifest = {
manifest_version: 3,
default_locale: 'en',
/**
* if you want to support multiple languages, you can use the following reference
* https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Internationalization
*/
name: '__MSG_extensionName__',
version: packageJson.version,
description: '__MSG_extensionDescription__',
permissions: [
'storage',
// 'sidePanel',
// 'history',
'tabs',
'tabGroups',
'alarms',
'unlimitedStorage',
'system.cpu',
],
host_permissions: ['<all_urls>'],
key: `MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwon6UimSqj2ZXePAF5x+3UkAi7GFkPnfZkNKyocQb0RcEyVqle6EtzEN5nxokqW5gQQwjqlNyxsZ5jgwNYilgBWNpAR45Qj/d5d/ip9U8+7zpitYom7cbXX1u6EoeTT/BzrLukXOOkHH6CnEMLAEiSQhtf8tKjCkl3+ar0BhP9YEV/HkDmKih84IHjnyjClHhJIctNevCAFt/9YdHtncd0Bp+mmHGCbAjSJ68lKiJ4bNHz6MDpQXcRRTESC+DucCf4gfagIjGb1LTm4D/w78lL1E6gtxjySGBaByaUKFMlFsILX8AApAaZI1OoZvucFzYwkIJX0EVK+oz82xOOlNgwIDAQAB`,
// side_panel: {
// default_path: 'src/pages/sidepanel/index.html',
// },
options_page: 'src/pages/options/index.html',
background: {
service_worker: 'src/pages/background/index.js',
type: 'module',
},
action: {
default_popup: 'src/pages/popup/index.html',
default_icon: 'icon-34.png',
},
// chrome_url_overrides: {
// newtab: 'src/pages/newtab/index.html',
// },
icons: {
128: 'icon-128.png',
},
commands: {
command1: {
suggested_key: {
default: 'Ctrl+Shift+G',
mac: 'Command+Ctrl+G',
},
description: 'Collapse all groups, excluding the active tab group',
},
command2: {
suggested_key: {
default: 'Ctrl+Shift+E',
mac: 'Command+Ctrl+E',
},
description: 'Open bookmarks manage page',
},
},
content_scripts: [
// {
// matches: ['http://*/*', 'https://*/*', '<all_urls>'],
// js: ['src/pages/contentInjected/index.js'],
// // KEY for cache invalidation
// css: ['assets/css/contentStyle<KEY>.chunk.css'],
// },
// {
// matches: ['http://*/*', 'https://*/*', '<all_urls>'],
// js: ['src/pages/contentUI/index.js'],
// },
],
// devtools_page: 'src/pages/devtools/index.html',
web_accessible_resources: [
{
resources: ['assets/js/*.js', 'assets/css/*.css', 'icon-128.png', 'icon-34.png'],
matches: ['*://*/*'],
},
],
};
export default manifest;