-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathmanifest.js
executable file
·63 lines (61 loc) · 1.55 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
import packageJson from "./package.json" with { type: "json" };
/**
* After changing, please reload the extension at `chrome://extensions`
* @type {chrome.runtime.ManifestV3}
*/
const manifest = {
manifest_version: 3,
name: "Fuji",
version: packageJson.version,
description: packageJson.description,
permissions: [
"storage",
"sidePanel",
"tabs",
"activeTab",
"scripting",
"clipboardWrite",
"debugger",
"management",
],
host_permissions: ["<all_urls>"],
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_title: "Click to open side panel",
default_icon: "icon-128.png",
},
icons: {
128: "icon-128.png",
},
content_scripts: [
{
matches: ["http://*/*", "https://*/*", "<all_urls>"],
js: ["src/pages/content/index.js"],
css: ["assets/css/contentStyleGlobal.css"],
run_at: "document_start", // load the js as soon as possible since it does not rely on the DOM
},
],
// devtools_page: "src/pages/devtools/index.html",
web_accessible_resources: [
{
resources: [
"assets/js/*.js",
"assets/css/*.css",
"assets/fonts/*",
"icon-128.png",
"src/pages/permission/index.html",
"src/pages/permission/requestPermissions.ts",
],
matches: ["*://*/*"],
},
],
};
export default manifest;