forked from yuezk/github-account-switcher
-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.ts
35 lines (33 loc) · 875 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
import { defineManifest } from '@crxjs/vite-plugin'
import packageJson from './package.json'
const { description, version } = packageJson
export default defineManifest({
name: 'GitHub Account Switcher',
description,
version,
manifest_version: 3,
icons: {
'16': 'img/logo-16.png',
'32': 'img/logo-32.png',
'48': 'img/logo-48.png',
'128': 'img/logo-128.png',
},
action: {
default_popup: 'popup.html',
default_icon: 'img/logo-48.png',
},
background: {
service_worker: 'src/background/index.ts',
type: 'module',
},
content_scripts: [
{
matches: ['https://*.github.com/*'],
run_at: 'document_start',
js: ['src/content/index.ts'],
},
],
web_accessible_resources: [],
host_permissions: ['https://*.github.com/'],
permissions: ['cookies', 'storage', 'webRequest', 'declarativeNetRequest'],
})