-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
28 lines (27 loc) · 926 Bytes
/
vite.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
import { defineConfig } from 'vite'
import Userscript from 'vite-plugin-tm-userscript'
export default defineConfig({
plugins: [
Userscript({
entry: 'main.ts',
headers: {
'name': '百度搜索页面美化',
'namespace': 'https://www.nanoka.top',
'author': 'asadahimeka',
'description': '百度搜索页面样式美化、隐藏多余内容、去广告、整体居中',
'source': 'https://github.com/asadahimeka/userscripts',
'supportURL': 'https://github.com/asadahimeka/userscripts/issues',
'license': 'MIT',
'match': [
'*://www.baidu.com/s?*',
'*://ipv6.baidu.com/s?*',
'*://www.baidu.com/baidu?*',
'*://ipv6.baidu.com/baidu?*',
],
// 'require': 'https://lib.baomitu.com/arrive/2.4.1/arrive.min.js',
'run-at': 'document-start',
'noframes': true,
},
}),
],
})