-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
367 lines (321 loc) · 11.9 KB
/
Copy pathsettings.html
File metadata and controls
367 lines (321 loc) · 11.9 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>智能表单数据模拟助手 - 设置</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 500px;
min-height: 600px;
font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
}
.container {
max-width: 460px;
margin: 0 auto;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.logo {
font-size: 28px;
font-weight: bold;
margin-bottom: 10px;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.subtitle {
font-size: 14px;
opacity: 0.9;
}
.settings-section {
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.section-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 10px;
}
.setting-item {
margin-bottom: 20px;
}
.setting-label {
display: block;
margin-bottom: 8px;
font-weight: 500;
font-size: 14px;
}
.setting-description {
font-size: 12px;
opacity: 0.8;
margin-top: 4px;
line-height: 1.4;
}
.radio-group {
display: flex;
gap: 15px;
margin-top: 10px;
}
.radio-item {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.radio-input {
width: 16px;
height: 16px;
}
.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
}
.checkbox-input {
width: 18px;
height: 18px;
}
.range-group {
display: flex;
align-items: center;
gap: 15px;
margin-top: 10px;
}
.range-input {
flex: 1;
height: 6px;
border-radius: 3px;
background: rgba(255, 255, 255, 0.2);
outline: none;
}
.range-value {
min-width: 60px;
text-align: center;
font-size: 12px;
background: rgba(255, 255, 255, 0.1);
padding: 4px 8px;
border-radius: 4px;
}
.number-input {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 6px;
padding: 8px 12px;
color: white;
width: 80px;
font-size: 14px;
}
.number-input:focus {
outline: none;
border-color: rgba(255, 255, 255, 0.5);
}
.actions {
display: flex;
gap: 10px;
margin-top: 30px;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
flex: 1;
}
.btn-primary {
background: rgba(76, 175, 80, 0.8);
color: white;
}
.btn-primary:hover {
background: rgba(76, 175, 80, 1);
transform: translateY(-1px);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.3);
}
.status {
background: rgba(255, 255, 255, 0.1);
padding: 10px;
border-radius: 6px;
font-size: 12px;
text-align: center;
margin-top: 15px;
display: none;
}
.status.success {
background: rgba(76, 175, 80, 0.2);
border: 1px solid rgba(76, 175, 80, 0.3);
}
.status.error {
background: rgba(244, 67, 54, 0.2);
border: 1px solid rgba(244, 67, 54, 0.3);
}
.feature-badge {
background: rgba(255, 193, 7, 0.2);
border: 1px solid rgba(255, 193, 7, 0.3);
padding: 2px 8px;
border-radius: 12px;
font-size: 10px;
margin-left: 8px;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="logo">⚙️ 智能填充设置</div>
<div class="subtitle">配置数据生成模式和填充行为</div>
</div>
<div class="settings-section">
<div class="section-title">
📊 数据生成模式
</div>
<div class="setting-item">
<label class="setting-label">数据生成器选择</label>
<div class="radio-group">
<label class="radio-item">
<input type="radio" name="dataMode" value="basic" class="radio-input" checked>
<span>基础模式 (utils.js)</span>
<span class="feature-badge" style="display: none;"></span>
</label>
<label class="radio-item">
<input type="radio" name="dataMode" value="advanced" class="radio-input">
<span>高级模式 (advancedMockData.js)</span>
<span class="feature-badge" style="display: none;"></span>
</label>
</div>
<div class="setting-description">
高级模式使用基于C#库转换的增强数据生成器,提供更丰富的随机数据模式和绝对随机算法
</div>
</div>
</div>
<div class="settings-section">
<div class="section-title">
⏱️ 填充间隔配置
</div>
<div class="setting-item">
<label class="setting-label">启用填充间隔</label>
<div class="checkbox-group">
<input type="checkbox" id="enableInterval" class="checkbox-input" checked>
<label for="enableInterval">在每个表单元素填充之间添加随机延迟</label>
</div>
<div class="setting-description">
启用后可以降低被网站风控检测的概率
</div>
</div>
<div class="setting-item">
<label class="setting-label">间隔时间范围 (毫秒)</label>
<div class="range-group">
<input type="range" id="intervalMin" class="range-input" min="50" max="1000" value="100">
<span id="intervalMinValue" class="range-value">100ms</span>
<span>到</span>
<input type="range" id="intervalMax" class="range-input" min="200" max="2000" value="500">
<span id="intervalMaxValue" class="range-value">500ms</span>
</div>
<div class="setting-description">
设置每个表单元素填充之间的最小和最大延迟时间
</div>
</div>
</div>
<div class="settings-section">
<div class="section-title">
👤 自然填充模式
</div>
<div class="setting-item">
<label class="setting-label">启用自然填充</label>
<div class="checkbox-group">
<input type="checkbox" id="enableNaturalMode" class="checkbox-input" checked>
<label for="enableNaturalMode">模拟人类输入行为</label>
</div>
<div class="setting-description">
逐个字符输入,模拟真实用户的打字速度
</div>
</div>
<div class="setting-item">
<label class="setting-label">打字速度 (字符/秒)</label>
<div class="range-group">
<input type="range" id="typingSpeed" class="range-input" min="10" max="100" value="50">
<span id="typingSpeedValue" class="range-value">50 字符/秒</span>
</div>
<div class="setting-description">
设置模拟人类打字的平均速度
</div>
</div>
<div class="setting-item">
<label class="setting-label">随机暂停</label>
<div class="checkbox-group">
<input type="checkbox" id="enableRandomPauses" class="checkbox-input" checked>
<label for="enableRandomPauses">在输入过程中添加随机暂停</label>
</div>
<div class="setting-description">
模拟人类思考时的自然停顿
</div>
</div>
</div>
<div class="settings-section">
<div class="section-title">
🔧 其他设置
</div>
<div class="setting-item">
<label class="setting-label">自动检测placeholder格式</label>
<div class="checkbox-group">
<input type="checkbox" id="autoDetectPlaceholder" class="checkbox-input" checked>
<label for="autoDetectPlaceholder">根据placeholder内容智能匹配数据格式</label>
</div>
<div class="setting-description">
例如:placeholder包含"202504"时会生成对应格式的月份数据
</div>
</div>
<div class="setting-item">
<label class="setting-label">显示悬浮窗</label>
<div class="checkbox-group">
<input type="checkbox" id="showFloatingWidget" class="checkbox-input" checked>
<label for="showFloatingWidget">在页面上显示智能填充悬浮窗</label>
</div>
</div>
<div class="setting-item">
<label class="setting-label">启用右键菜单</label>
<div class="checkbox-group">
<input type="checkbox" id="enableContextMenu" class="checkbox-input" checked>
<label for="enableContextMenu">在输入框右键菜单中添加填充选项</label>
</div>
</div>
</div>
<div class="status" id="status">
<span id="statusText"></span>
</div>
<div class="actions">
<button class="btn btn-secondary" id="resetBtn">恢复默认</button>
<button class="btn btn-primary" id="saveBtn">保存设置</button>
</div>
</div>
<script src="settings.js"></script>
</body>
</html>