forked from chathub-dev/chathub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.config.ts
64 lines (63 loc) · 1.55 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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.35.5',
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', 'declarativeNetRequestWithHostAccess'],
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',
},
declarative_net_request: {
rule_resources: [
{
id: 'ruleset_bing',
enabled: true,
path: 'src/rules/bing.json',
},
{
id: 'ruleset_ddg',
enabled: true,
path: 'src/rules/ddg.json',
},
],
},
}
})