-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmanifest.ts
39 lines (36 loc) · 952 Bytes
/
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
import { ManifestV3Export } from '@crxjs/vite-plugin';
import pkg from './package.json';
const manifest: ManifestV3Export = {
manifest_version: 3,
name: 'CrossSync',
description: pkg.description,
version: pkg.version,
action: {
default_popup: 'popup.html',
default_icon: {
16: 'logo.png',
32: 'logo.png',
48: 'logo.png',
128: 'logo.png',
},
},
icons: {
16: 'logo.png',
32: 'logo.png',
48: 'logo.png',
128: 'logo.png',
},
options_page: 'index.html',
background: {
service_worker: './src/service-worker.ts',
},
content_scripts: [
{
js: ['./src/content-script/index.ts'],
matches: ['*://*.twitter.com/*'],
},
],
permissions: ['storage', 'webRequest', 'webNavigation'],
host_permissions: ['*://*.twitter.com/*'],
};
export default manifest;