forked from chathub-dev/chathub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.config.ts
50 lines (49 loc) · 1.22 KB
/
manifest.config.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
47
48
49
50
import { defineManifest } from '@crxjs/vite-plugin'
export default defineManifest(async (env) => {
return {
manifest_version: 3,
name: '__MSG_appName__',
description: '__MSG_appDesc__',
default_locale: 'en',
version: '1.26.1',
icons: {
'16': 'src/assets/icon.png',
'32': 'src/assets/icon.png',
'48': 'src/assets/icon.png',
'128': 'src/assets/icon.png',
},
background: {
service_worker: 'src/background/index.ts',
type: 'module',
},
action: {},
host_permissions: [
'https://*.bing.com/',
'https://*.openai.com/',
'https://bard.google.com/',
'https://*.chathub.gg/',
],
optional_host_permissions: ['https://*/*'],
permissions: ['storage', 'unlimitedStorage', 'sidePanel'],
content_scripts: [
{
matches: ['https://chat.openai.com/*'],
js: ['src/content-script/chatgpt-inpage-proxy.ts'],
},
],
commands: {
'open-app': {
suggested_key: {
default: 'Alt+J',
windows: 'Alt+J',
linux: 'Alt+J',
mac: 'Command+J',
},
description: 'Open ChatHub app',
},
},
side_panel: {
default_path: 'sidepanel.html',
},
}
})