-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.ts
executable file
·40 lines (38 loc) · 1.02 KB
/
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
import packageJson from "./package.json";
/**
* After changing, please reload the extension at `chrome://extensions`
*/
const manifest: chrome.runtime.ManifestV3 = {
manifest_version: 3,
name: packageJson.name,
version: packageJson.version,
description: packageJson.description,
background: {
service_worker: "src/pages/background/index.js",
type: "module",
},
action: {
default_title: "Grateful Grabber",
default_popup: "src/pages/popup/index.html",
default_icon: "stealie-128.png",
},
icons: {
"128": "stealie-128.png",
},
content_scripts: [
{
// matches: ["http://*/*", "https://*/*", "<all_urls>"],
matches: ["*://*.archive.org/*", "*://archive.org/*"],
js: ["src/pages/content/index.js"],
// KEY for cache invalidation
css: ["assets/css/contentStyle<KEY>.chunk.css"],
},
],
web_accessible_resources: [
{
resources: ["assets/js/*.js", "assets/css/*.css", "stealie-128.png"],
matches: ["*://*/*"],
},
],
};
export default manifest;