-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.js
executable file
·46 lines (44 loc) · 1.18 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
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,
minimum_chrome_version: "121",
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: ["tabs", "tabGroups", "activeTab", "sidePanel", "storage", "favicon"],
web_accessible_resources: [
{
resources: ["_favicon/*"],
matches: ["<all_urls>"],
extension_ids: ["*"],
},
],
side_panel: {
default_path: "sidepanel.html",
},
options_page: "options.html",
background: {
service_worker: "service_worker.js",
type: "module",
},
action: {
default_popup: "popup.html",
},
icons: {
32: "icon_32.png",
64: "icon_64.png",
128: "icon_128.png",
256: "icon_256.png",
},
};
export default manifest;