-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathwxt.config.ts
More file actions
144 lines (141 loc) · 4.08 KB
/
Copy pathwxt.config.ts
File metadata and controls
144 lines (141 loc) · 4.08 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import { defineConfig, UserManifest } from 'wxt'
const BASE_PERMISSIONS = [
'storage',
'activeTab',
'tabs',
'scripting',
'unlimitedStorage',
'webRequest'
]
const perBrowserManifest: Record<string, UserManifest> = {
chrome: {
permissions: BASE_PERMISSIONS,
optional_permissions: ['notifications']
},
firefox: {
permissions: [...BASE_PERMISSIONS, 'notifications'],
browser_specific_settings: {
gecko: {
id: 'chorus@cdrani.dev',
data_collection_permissions: {
required: ['none']
}
} as Record<string, unknown>
}
}
}
// See https://wxt.dev/api/config.html
export default defineConfig({
srcDir: 'src',
extensionApi: 'chrome',
zip: {
excludeSources: [
'.claude/**/*',
'.github/**/*',
'.vscode/**/*',
'license.md',
'.output/**/*',
'README.md',
'CHANGELOG.md',
'code_of_conduct.md'
]
},
modules: ['@wxt-dev/module-svelte'],
alias: {
$lib: 'src/lib'
},
manifest: ({ browser }) => ({
short_name: 'chorus',
name: 'Chorus - Spotify Enhancer',
description:
'Enhance Spotify with controls to save favourite snips, auto-skip tracks, and set global and custom speed. More to come!',
web_accessible_resources: [
{
resources: [
'/media-override.js',
'/router.js',
'/icon/*',
'/sounds/*',
'/processor.js',
'/ms-processor.js',
'/soundtouch.js',
'/content-scripts/*.css'
],
matches: ['*://open.spotify.com/*']
}
],
...perBrowserManifest[browser],
host_permissions: ['*://*.spotify.com/*'],
commands: {
'on/off': {
description: 'Toggle Extension On/Off'
},
loop: {
description: 'Loop/UnLoop Snip/Track'
},
next: {
description: 'Next Track'
},
'play/pause': {
description: 'Play/Pause'
},
repeat: {
description: 'Repeat Track'
},
shuffle: {
description: 'Shuffle Tracks'
},
previous: {
description: 'Previous Track'
},
settings: {
description: 'Display Controls'
},
'mute/unmute': {
description: 'Mute/Unmute Track'
},
'seek-forward': {
description: 'Seek Track Forwards'
},
'save/unsave': {
description: 'Save/Unsave Track'
},
'seek-rewind': {
description: 'Seek Track Backwards'
},
'block-track': {
description: 'Add track to block list'
},
'show-track': {
description: 'Show current track as a notification'
},
'toggle-new-releases': {
description: 'Toggle New Releases UI'
},
'toggle-config': {
description: 'Toggle Chorus Config UI'
},
'audio-preset-1': {
description: 'Audio Preset 1'
},
'audio-preset-2': {
description: 'Audio Preset 2'
},
'audio-preset-3': {
description: 'Audio Preset 3'
},
'audio-preset-4': {
description: 'Audio Preset 4'
},
'audio-preset-5': {
description: 'Audio Preset 5'
},
'cycle-theme-next': {
description: 'Cycle Theme Next'
},
'cycle-theme-previous': {
description: 'Cycle Theme Previous'
}
}
})
})