-
Notifications
You must be signed in to change notification settings - Fork 4
/
arguments-builder.config.ts
170 lines (169 loc) · 3.86 KB
/
arguments-builder.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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
import { defineConfig } from "@iringo/arguments-builder";
export default defineConfig({
output: {
surge: {
path: "./dist/BiliBili.ADBlock.sgmodule",
transformEgern: {
enable: true,
path: "./dist/BiliBili.ADBlock.yaml",
},
},
loon: {
path: "./dist/BiliBili.ADBlock.plugin",
},
customItems: [
{
path: "./dist/BiliBili.ADBlock.stoverride",
template: "./template/stash.handlebars",
},
{
path: "./dist/BiliBili.ADBlock.snippet",
template: "./template/quantumultx.handlebars",
},
],
dts: {
isExported: true,
path: "./src/types.d.ts",
},
boxjsSettings: {
path: "./template/boxjs.settings.json",
scope: "@BiliBili.ADBlock.Settings",
},
},
args: [
{
key: "Splash",
name: "[开屏] 去除广告",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Feed.AD",
name: "[推荐] 去除广告",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Feed.Activity",
name: "[推荐] 去除“活动大图”",
defaultValue: false,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Feed.Vertical",
name: "[推荐] 去除竖屏视频",
defaultValue: false,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Feed.BlockUpLiveList",
name: "[推荐] 屏蔽UP主直播推广",
defaultValue: "",
type: "string",
description: "填写up主uid,以英文逗号隔开。",
},
{
key: "Feed.Story",
name: "[首页] 去除短视频流广告",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Search.AD",
name: "[搜索] 去除广告",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Search.HotSearch",
name: "[搜索] 去除“热搜”",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "PGC.AD",
name: "[番剧电影] 去除广告",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Xlive.AD",
name: "[直播] 去除广告",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Dynamic.HotTopics",
name: "[动态] 去除“热门话题”",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Dynamic.MostVisited",
name: "[动态] 去除“最常访问”",
defaultValue: false,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Dynamic.AdCard",
name: "[动态] 去除广告卡片",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "View.AD",
name: "[用户投稿] 去除视频广告",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "DM.Command",
name: "[弹幕] 去除交互式弹幕",
defaultValue: false,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "DM.Colorful",
name: "[弹幕] 替换彩色弹幕",
defaultValue: false,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "Reply.AD",
name: "[评论] 去除广告",
defaultValue: true,
type: "boolean",
description: "是否启用此处修改",
},
{
key: "LogLevel",
name: "[调试] 日志等级",
type: "string",
defaultValue: "WARN",
description: "选择脚本日志的输出等级,低于所选等级的日志将全部输出。",
options: [
{ key: "OFF", label: "🔴 关闭" },
{ key: "ERROR", label: "❌ 错误" },
{ key: "WARN", label: "⚠️ 警告" },
{ key: "INFO", label: "ℹ️ 信息" },
{ key: "DEBUG", label: "🅱️ 调试" },
{ key: "ALL", label: "全部" },
],
},
],
});