-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmanifest.ts
executable file
·46 lines (44 loc) · 1.22 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
41
42
43
44
45
46
import packageJson from './package.json';
/**
* After changing, please reload the extension at `chrome://extensions`
*/
const manifest: chrome.runtime.ManifestV3 = {
manifest_version: 3,
name: 'DistiLlama',
version: packageJson.version,
description: packageJson.description,
permissions: ['storage', 'sidePanel'],
options_page: 'src/pages/options/index.html',
background: {
service_worker: 'src/pages/background/index.js',
type: 'module',
},
action: {
default_title: 'Click to open panel',
},
side_panel: {
default_path: 'src/pages/sidePanel/index.html',
default_icon: 'icon-34.png',
},
icons: {
'128': 'icon-128.png',
},
content_scripts: [
{
matches: ['http://*/*', 'https://*/*', '<all_urls>'],
js: ['src/pages/content/index.js'],
},
],
content_security_policy: {
extension_pages:
"script-src 'self' 'wasm-unsafe-eval' http://localhost:* http://127.0.0.1:*; script-src-elem 'self' 'wasm-unsafe-eval'; object-src 'self'",
},
web_accessible_resources: [
{
resources: ['assets/js/*.js', 'assets/css/*.css', 'icon-128.png', 'icon-34.png'],
matches: ['*://*/*'],
},
],
host_permissions: ['<all_urls>'],
};
export default manifest;