forked from xifangczy/cat-catch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
235 lines (221 loc) · 8.11 KB
/
Copy pathoptions.html
File metadata and controls
235 lines (221 loc) · 8.11 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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>猫抓 设置</title>
<link rel="stylesheet" type="text/css" href="css/options.css" media="all" />
<script src="js/jquery.min.js"></script>
<script src="js/init.js"></script>
</head>
<body>
<div class="wrapper">
<section>
<h1 class="optionsTitle">抓取后缀</h1>
<div class="optionBox">
<span class="explain">填写不含"."的后缀, 不过滤大小填0</span>
<table id="extList">
<tr>
<th>扩展名</th>
<th>过滤大小</th>
<th>启用</th>
<th>删除</th>
</tr>
</table>
<div class="button">
<button type="button" id="AddExt">添加后缀</button
><button type="button" id="ResetExt" data-reset="Ext">
重置后缀
</button>
</div>
</div>
</section>
<section>
<h1 class="optionsTitle">抓取类型</h1>
<div class="optionBox">
<span class="explain">填入正确的content-type类型, 不过滤大小填0</span>
<table id="typeList">
<tr>
<th>类型</th>
<th>过滤大小</th>
<th>启用</th>
<th>删除</th>
</tr>
</table>
<div class="button">
<button type="button" id="AddType">添加类型</button
><button type="button" id="ResetType" data-reset="Type">
重置类型
</button>
</div>
</div>
</section>
<section>
<h1 class="optionsTitle">
<img src="img/regex.png" style="width: 18px" />正则匹配
</h1>
<div class="optionBox">
<span class="explain"
>表达式标志 i: 忽略大小写, g: 全局搜索。也可为空。</span
><br />
<table id="regexList">
<tr>
<th>标志</th>
<th>正则表达式</th>
<th>启用</th>
<th>删除</th>
</tr>
</table>
<div class="button">
<button type="button" id="AddRegex">添加正则</button
><button type="button" id="ResetRegex" data-reset="Regex">
重置正则
</button>
</div>
<span style="font-weight: bold; font-size: 15px">正则测试</span><br />
<span>要匹配的URL:</span><br />
<input type="text" id="testUrl" style="width: 590px" /><br />
<span>正则表达式:</span><br />
<input type="text" id="testRegex" style="width: 590px" /><br />
<span>标识符:</span><br />
<input type="text" id="testFlag" style="width: 20px" value="ig" />
结果: <span style="color: #ff0000" id="testResult">不匹配</span>
</div>
</section>
<section>
<h1 class="optionsTitle">其他设置</h1>
<div class="optionBox" id="OtherOption">
<div class="list">
<div class="item">
<div>模拟手机User Agent</div>
<textarea
id="MobileUserAgent"
type="text"
class="width100"
></textarea>
</div>
<div class="item">
<div>
<a
href="https://github.com/nilaoda/N_m3u8DL-CLI"
target="_blank"
>N_m3u8DL-CLI</a
>
参数
</div>
<span class="explain width100"
>$url$ m3u8网址. $referer$ 请求头Referer. $title$ 网页标题</span
>
<textarea id="m3u8dlArg" type="text" class="width100"></textarea>
</div>
<div class="item">
<div>自动清理幽灵数据(默认100条后自动清理)</div>
<input id="OtherAutoClear" type="number" />
</div>
<div class="item">
<div>
调用本地<a href="https://potplayer.daum.net/" target="_blank"
>PotPlayer</a
>播放器预览资源
</div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="Potplayer" class="switchInput" />
<span class="switchRound switchRadius"
><em class="switchRoundBtn switchRadius"></em
></span>
</label>
</div>
</div>
<div class="item">
<div>调用m3u8dl://协议下载m3u8</div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="m3u8dl" class="switchInput" />
<span class="switchRound switchRadius"
><em class="switchRoundBtn switchRadius"></em
></span>
</label>
</div>
</div>
<div class="item">
<div>捕获脚本选择</div>
<select id="injectScript">
<option value="catch.js">Hook脚本(catch.js)</option>
<option value="recorder.js">录制脚本(recorder.js)</option>
</select>
</div>
<div class="item">
<div>保存文件名使用网页标题</div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="TitleName" class="switchInput" />
<span class="switchRound switchRadius"
><em class="switchRoundBtn switchRadius"></em
></span>
</label>
</div>
</div>
<div class="item">
<div>显示网站图标</div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="ShowWebIco" class="switchInput" />
<span class="switchRound switchRadius"
><em class="switchRoundBtn switchRadius"></em
></span>
</label>
</div>
</div>
<div class="item">
<div>调试模式</div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="Debug" class="switchInput" />
<span class="switchRound switchRadius"
><em class="switchRoundBtn switchRadius"></em
></span>
</label>
</div>
</div>
</div>
<div class="button">
<button type="button" id="ResetOption">重置其他设置</button>
</div>
</div>
</section>
<section>
<h1 class="optionsTitle">操作</h1>
<div class="optionBox">
<div class="button" style="justify-content: center">
<input id="importOptionsFile" type="file" class="hide" />
<button type="button" id="exportOptions">导出设置</button>
<button type="button" id="importOptions">导入配置</button>
<button type="button" id="ClearData">清空抓取的数据</button>
<button type="button" id="ResetAllOption">重置所有设置</button>
</div>
</div>
</section>
<section>
<h1 class="optionsTitle">关于</h1>
<div class="optionBox">
<div class="item">
<div id="version"></div>
</div>
<div class="item">
文档说明:
<a href="https://o2bmm.gitbook.io/cat-catch/" target="_blank">
https://o2bmm.gitbook.io/cat-catch/</a
>
</div>
<div class="item">
Github:
<a href="https://github.com/xifangczy/cat-catch" target="_blank">
https://github.com/xifangczy/cat-catch</a
>
</div>
</div>
</section>
</div>
<script src="js/options.js"></script>
</body>
</html>