-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmanifest.config.ts
More file actions
45 lines (44 loc) · 1021 Bytes
/
Copy pathmanifest.config.ts
File metadata and controls
45 lines (44 loc) · 1021 Bytes
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
import { defineManifest } from '@crxjs/vite-plugin'
export default defineManifest({
manifest_version: 3,
name: '__MSG_extensionName__',
description: '__MSG_extensionDescription__',
version: '1.2.1',
default_locale: 'en',
permissions: ['storage'],
host_permissions: [
'https://x.com/*',
'https://twitter.com/*',
'https://*/*',
'http://localhost/*',
'http://127.0.0.1/*',
'http://[::1]/*',
'http://*.local/*'
],
optional_host_permissions: [
'http://*/*'
],
icons: {
16: 'icon16.png',
48: 'icon48.png',
128: 'icon128.png',
},
content_security_policy: {
extension_pages: "script-src 'self'; object-src 'self'"
},
background: {
service_worker: 'src/background/index.ts',
type: 'module',
},
action: {},
options_ui: {
page: 'src/options/index.html',
open_in_tab: true,
},
content_scripts: [
{
matches: ['https://x.com/*', 'https://twitter.com/*'],
js: ['src/contentScript/index.tsx'],
},
],
} as any)