-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.html
More file actions
582 lines (537 loc) · 27.3 KB
/
rules.html
File metadata and controls
582 lines (537 loc) · 27.3 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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<title>Rules & Interceptor</title>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0f1117;
--bg2: #151923;
--bg3: #1c2235;
--bg4: #222840;
--border: rgba(255,255,255,0.08);
--border2: rgba(255,255,255,0.14);
--text: #e2e8f0;
--text-dim: #8892a4;
--text-mute: #4b5568;
--accent: #3b82f6;
--accent-bg: rgba(59,130,246,0.14);
--green: #22c55e;
--green-bg: rgba(34,197,94,0.12);
--red: #ef4444;
--red-bg: rgba(239,68,68,0.12);
--orange: #f97316;
--orange-bg: rgba(249,115,22,0.12);
--purple: #a855f7;
--purple-bg: rgba(168,85,247,0.12);
--radius: 8px;
}
html, body {
height: 100%;
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
font-size: 13px;
line-height: 1.5;
}
body { display: flex; flex-direction: column; overflow: hidden; }
/* ── Header / tabs ──────────────────────────────────────────────────── */
.header {
display: flex; align-items: center; gap: 0;
background: var(--bg2);
border-bottom: 1px solid var(--border);
padding: 0 16px;
flex-shrink: 0;
}
.tab-btn {
padding: 12px 18px; background: none; border: none;
border-bottom: 2px solid transparent;
color: var(--text-dim); cursor: pointer; font-size: 13px;
font-weight: 500; white-space: nowrap;
transition: color 0.15s, border-color 0.15s;
margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
/* ── Content area ───────────────────────────────────────────────────── */
.tab-content { display: none; flex: 1; overflow-y: auto; padding: 18px 20px; }
.tab-content.active { display: flex; flex-direction: column; gap: 14px; }
/* ── Toolbar row ────────────────────────────────────────────────────── */
.toolbar-row {
display: flex; align-items: center; gap: 10px;
}
.toolbar-row h2 {
flex: 1; font-size: 15px; font-weight: 600; color: var(--text);
}
/* ── Buttons ────────────────────────────────────────────────────────── */
button { cursor: pointer; font-family: inherit; }
.btn-primary {
background: var(--accent); color: #fff; border: none;
padding: 7px 14px; border-radius: var(--radius);
font-size: 12.5px; font-weight: 600;
transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
background: var(--bg3); color: var(--text); border: 1px solid var(--border2);
padding: 6px 12px; border-radius: var(--radius); font-size: 12px;
transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg4); }
.btn-danger {
background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.25);
padding: 4px 9px; border-radius: 6px; font-size: 11.5px;
transition: background 0.15s;
}
.btn-danger:hover { background: rgba(239,68,68,0.22); }
.btn-sm { padding: 4px 9px; font-size: 11.5px; }
/* ── Edit form ──────────────────────────────────────────────────────── */
.edit-form {
display: none;
background: var(--bg2); border: 1px solid var(--border2);
border-radius: 12px; padding: 18px 20px;
}
.edit-form.visible { display: block; }
.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-row label {
font-size: 11.5px; font-weight: 600; color: var(--text-dim);
text-transform: uppercase; letter-spacing: 0.4px;
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
background: var(--bg3); color: var(--text);
border: 1px solid var(--border2); border-radius: 6px;
padding: 7px 10px; font-size: 12.5px; font-family: inherit;
outline: none; transition: border-color 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--accent); }
.form-row select option { background: var(--bg3); color: var(--text); }
.form-row textarea {
min-height: 72px; resize: vertical;
font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
font-size: 12px; line-height: 1.55;
}
/* ── Section title ──────────────────────────────────────────────────── */
.section-title {
font-size: 11px; font-weight: 700; color: var(--text-mute);
text-transform: uppercase; letter-spacing: 0.6px;
margin: 14px 0 8px;
}
.section-title small {
font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--text-dim);
}
/* ── Condition / action rows ────────────────────────────────────────── */
.builder { display: flex; flex-direction: column; gap: 6px; }
.builder-row { display: flex; gap: 6px; align-items: center; }
.builder-row select,
.builder-row input { flex: 1; min-width: 0; }
.builder-row select {
background: var(--bg3); color: var(--text);
border: 1px solid var(--border2); border-radius: 6px;
padding: 6px 8px; font-size: 12px; outline: none;
}
.builder-row input[type="text"] {
background: var(--bg3); color: var(--text);
border: 1px solid var(--border2); border-radius: 6px;
padding: 6px 8px; font-size: 12px; outline: none;
}
.builder-row input[type="color"] {
width: 34px; height: 32px; padding: 2px; border-radius: 6px;
border: 1px solid var(--border2); background: var(--bg3);
cursor: pointer; flex-shrink: 0;
}
/* ── Rule items list ────────────────────────────────────────────────── */
.rule-list { display: flex; flex-direction: column; gap: 6px; }
.rule-item {
background: var(--bg2); border: 1px solid var(--border);
border-radius: 10px; padding: 11px 14px;
display: flex; align-items: center; gap: 10px;
transition: background 0.15s, border-color 0.15s;
}
.rule-item:hover { background: var(--bg3); border-color: var(--border2); }
.rule-name { flex: 1; font-weight: 600; font-size: 13px; color: var(--text); }
.rule-meta { font-size: 11px; color: var(--text-mute); white-space: nowrap; }
.rule-hits {
font-size: 11px; background: var(--bg4); color: var(--text-dim);
padding: 2px 7px; border-radius: 99px; white-space: nowrap;
}
/* Type badges */
.badge {
font-size: 11px; padding: 2px 8px; border-radius: 99px;
font-weight: 600; white-space: nowrap;
}
.badge-block { background: var(--red-bg); color: var(--red); }
.badge-mock { background: var(--green-bg); color: var(--green); }
.badge-modify { background: var(--orange-bg); color: var(--orange); }
.badge-hl { background: var(--purple-bg); color: var(--purple); }
.badge-default { background: var(--accent-bg); color: var(--accent); }
/* ── Mock source toggle ────────────────────────────────────────────── */
.mock-source-toggle { display: flex; gap: 16px; align-items: center; }
.radio-label { display: flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text); font-size: 13px; }
.radio-label input[type="radio"] { accent-color: var(--accent); }
/* ── Toggle switch ──────────────────────────────────────────────────── */
.toggle { position: relative; width: 34px; height: 18px; display: inline-block; flex-shrink: 0; }
.toggle input { display: none; }
.toggle-track {
position: absolute; inset: 0; background: var(--bg4);
border-radius: 99px; cursor: pointer; transition: 0.2s;
border: 1px solid var(--border2);
}
.toggle-track::before {
content: ''; position: absolute;
width: 12px; height: 12px; background: var(--text-dim);
border-radius: 50%; left: 2px; top: 2px; transition: 0.2s;
}
.toggle input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-track::before { transform: translateX(16px); background: #fff; }
/* ── Form action row ────────────────────────────────────────────────── */
.form-actions { display: flex; gap: 8px; margin-top: 16px; }
/* ── Empty state ────────────────────────────────────────────────────── */
.empty-state {
text-align: center; padding: 48px 20px;
color: var(--text-mute); font-size: 13px;
}
.empty-state-icon { font-size: 36px; margin-bottom: 10px; opacity: 0.5; }
/* ── Description text ───────────────────────────────────────────────── */
.description {
font-size: 12px; color: var(--text-dim); line-height: 1.6;
background: var(--bg2); border: 1px solid var(--border);
border-radius: 8px; padding: 10px 14px;
}
.description code {
background: var(--bg3); color: #93c5fd;
padding: 1px 4px; border-radius: 4px; font-size: 11px;
}
/* ── Activity log ──────────────────────────────────────────────────── */
.act-group-header {
padding: 10px 14px 6px;
font-size: 11px; font-weight: 700;
color: var(--text-mute); text-transform: uppercase;
letter-spacing: 0.4px;
border-top: 1px solid var(--border);
margin-top: 8px;
display: flex; align-items: center; gap: 8px;
}
.act-group-header:first-child { border-top: none; margin-top: 0; }
.act-group-url {
font-weight: 400; text-transform: none; letter-spacing: 0;
color: var(--text-dim); overflow: hidden; text-overflow: ellipsis;
white-space: nowrap; flex: 1; min-width: 0;
}
.act-entry {
display: flex; align-items: center; gap: 8px;
flex-wrap: wrap;
padding: 5px 14px 5px 28px;
font-size: 12px; color: var(--text);
transition: background 0.1s;
}
.act-entry:hover { background: var(--bg3); }
.act-time { font-size: 10px; color: var(--text-mute); flex-shrink: 0; width: 55px; }
.act-icon { font-size: 13px; flex-shrink: 0; }
.act-rule { font-weight: 600; flex-shrink: 0; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-url { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.act-type-mock { color: #f59e0b; }
.act-type-block { color: #ef4444; }
.act-type-modify { color: #3b82f6; }
.act-type-script { color: #a855f7; }
.act-detail {
font-size: 10px; color: #64748b;
background: rgba(255,255,255,0.04);
padding: 1px 6px; border-radius: 4px;
flex-shrink: 0; white-space: nowrap;
font-family: 'SF Mono', 'Fira Code', monospace;
}
.act-body {
grid-column: 1 / -1;
font-size: 10px; color: #6b7280;
font-family: 'SF Mono', 'Fira Code', monospace;
background: rgba(0,0,0,0.2);
padding: 4px 8px; border-radius: 4px;
margin-top: 2px;
white-space: pre-wrap; word-break: break-all;
max-height: 60px; overflow: hidden;
}
.act-links {
display: inline-flex;
align-items: center;
gap: 6px;
margin-left: auto;
}
.act-link {
border: 1px solid var(--border2);
background: var(--bg2);
color: var(--text-dim);
border-radius: 4px;
padding: 1px 6px;
font-size: 10px;
cursor: pointer;
}
.act-link:hover {
color: var(--text);
border-color: var(--accent);
}
.rule-item.flash {
animation: flashRule .9s ease;
}
@keyframes flashRule {
0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.35); border-color: rgba(59,130,246,0.8); }
100% { box-shadow: 0 0 0 9px rgba(59,130,246,0); border-color: var(--border); }
}
.badge-script { background: var(--purple-bg); color: var(--purple); }
.script-textarea { min-height: 140px; }
/* Large mock bodies: fixed viewport + internal scroll; avoids layout churn + spellchecker load */
#edit-mock-body {
min-height: 120px;
max-height: min(65vh, 520px);
overflow-y: auto;
resize: vertical;
}
#script-test-out {
display: none;
margin-top: 10px;
padding: 10px;
border-radius: 8px;
background: var(--bg3);
border: 1px solid var(--border2);
font-size: 11px;
font-family: 'SF Mono', 'Fira Code', monospace;
white-space: pre-wrap;
word-break: break-all;
max-height: 200px;
overflow-y: auto;
}
#script-test-out.visible { display: block; }
#tab-intercept { padding-bottom: 0; }
.script-ai-panel {
background: var(--bg3);
border: 1px solid var(--border2);
border-radius: 10px;
padding: 12px 14px;
margin-bottom: 14px;
}
.script-ai-toolbar {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 8px 12px;
margin-bottom: 10px;
}
.script-ai-badge {
flex-shrink: 0;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
padding: 3px 8px;
border-radius: 99px;
background: var(--purple-bg);
color: var(--purple);
border: 1px solid rgba(168,85,247,0.35);
}
.script-ai-lead {
flex: 1;
min-width: 200px;
margin: 0;
font-size: 11.5px;
color: var(--text-dim);
line-height: 1.55;
}
textarea.script-ai-prompt-text {
display: block;
width: 100%;
margin: 0;
min-height: 200px;
max-height: 480px;
resize: vertical;
box-sizing: border-box;
padding: 10px 12px;
background: rgba(0,0,0,0.22);
border: 1px solid var(--border);
border-radius: 8px;
font-size: 11px;
line-height: 1.55;
font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
color: var(--text-dim);
}
textarea.script-ai-prompt-text:read-only {
cursor: default;
opacity: 0.95;
}
.script-preset-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-bottom: 14px;
padding: 10px 12px;
background: var(--bg2);
border: 1px solid var(--border2);
border-radius: 8px;
}
.script-preset-row label {
font-size: 11px;
font-weight: 600;
color: var(--text-mute);
text-transform: uppercase;
letter-spacing: 0.4px;
width: 100%;
margin: 0;
}
#script-snippet-preset {
flex: 1;
min-width: 180px;
background: var(--bg3);
color: var(--text);
border: 1px solid var(--border2);
border-radius: 6px;
padding: 6px 10px;
font-size: 12px;
}
</style>
</head>
<body>
<!-- ── Header / tabs ──────────────────────────────────────────────────────── -->
<div class="header">
<button class="tab-btn active" data-tab="intercept">Intercept Rules</button>
<button class="tab-btn" data-tab="activity">Activity <span id="activity-count" style="font-size:10px;background:rgba(239,68,68,0.2);color:#f87171;padding:1px 6px;border-radius:99px;margin-left:4px;font-weight:700">0</span></button>
</div>
<!-- ══════════════════════ INTERCEPT RULES ══════════════════════════════════ -->
<div id="tab-intercept" class="tab-content active">
<div class="toolbar-row">
<h2>Request Interceptor</h2>
<button class="btn-secondary btn-sm" id="btn-test-notification" title="Send a test notification to all windows">🔔 Test Notification</button>
<button class="btn-primary" id="btn-add-intercept">+ New Rule</button>
</div>
<div class="description">
Intercept rules modify or block requests <b>before</b> they reach the server.
By default use a glob with <code>*</code>, e.g. <code>*example.com/api*</code>.
If <code>CUPNET_INTERCEPT_STRICT_URLS=1</code> is set, use only a URL prefix without <code>*</code>, e.g. <code>https://api.example.com/v1/</code>.
</div>
<!-- Edit form -->
<div id="intercept-edit-form" class="edit-form">
<input type="hidden" id="edit-intercept-id">
<div class="form-row">
<label>Rule name</label>
<input type="text" id="edit-intercept-name" placeholder="e.g. Block ads">
</div>
<div class="form-row">
<label>URL pattern (glob or strict prefix — see above)</label>
<input type="text" id="edit-intercept-pattern" placeholder="https://example.com/api/ or *example.com/ads*">
</div>
<div class="form-row">
<label>Action type</label>
<select id="edit-intercept-type">
<option value="block">Block request</option>
<option value="modifyHeaders">Modify headers</option>
<option value="mock">Mock response</option>
<option value="script">Dynamic script (before/after MITM)</option>
</select>
</div>
<!-- block info -->
<div id="intercept-params-block" style="display:none">
<div class="description">Request will be cancelled before it is sent. No additional parameters needed.</div>
</div>
<!-- modifyHeaders params -->
<div id="intercept-params-headers" style="display:none">
<div class="form-row" style="margin-top:10px">
<label>Request headers to set (JSON object)</label>
<textarea id="edit-req-headers" placeholder='{"X-Custom": "value"}' spellcheck="false" autocomplete="off"></textarea>
</div>
<div class="form-row">
<label>Response headers to set (JSON object)</label>
<textarea id="edit-resp-headers" placeholder='{"Access-Control-Allow-Origin": "*"}' spellcheck="false" autocomplete="off"></textarea>
</div>
</div>
<!-- mock params -->
<div id="intercept-params-mock" style="display:none">
<div class="form-row" style="margin-top:10px">
<label>Status code</label>
<input type="number" id="edit-mock-status" value="200" min="100" max="599" style="max-width:120px">
</div>
<div class="form-row">
<label>MIME type</label>
<select id="edit-mock-mime-select" class="mock-mime-select" title="Common Content-Type values; pick Custom to type your own"></select>
</div>
<div class="form-row" id="edit-mock-mime-custom-row" style="display:none">
<label>Custom MIME type</label>
<input type="text" id="edit-mock-mime-custom" placeholder="e.g. application/vnd.api+json" spellcheck="false" autocomplete="off">
</div>
<div class="form-row">
<label>Body source</label>
<div class="mock-source-toggle">
<label class="radio-label"><input type="radio" name="mock-body-source" value="text" checked> Inline text</label>
<label class="radio-label"><input type="radio" name="mock-body-source" value="file"> File path</label>
</div>
</div>
<div class="form-row" id="mock-body-text-row">
<label>Response body</label>
<textarea id="edit-mock-body" placeholder='{"ok":true}' rows="14" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"></textarea>
</div>
<div class="form-row" id="mock-body-file-row" style="display:none">
<label>File path <span style="font-weight:normal;color:var(--text-dim)">(read fresh on every request)</span></label>
<div style="display:flex;gap:8px;align-items:center">
<input type="text" id="edit-mock-file-path" placeholder="/path/to/response.json or .wasm" spellcheck="false" autocomplete="off" style="flex:1">
<button type="button" class="btn-secondary btn-sm" id="btn-browse-mock-file">Browse…</button>
</div>
<div id="mock-file-info" class="description" style="margin-top:4px"></div>
</div>
</div>
<!-- script params -->
<div id="intercept-params-script" style="display:none">
<div class="script-ai-panel">
<div class="script-ai-toolbar">
<span class="script-ai-badge" title="Prompt for ChatGPT, Claude, etc.">For LLM</span>
<p class="script-ai-lead">This <b>LLM instruction</b> lives only in the textarea below (includes reference snippets). Copy it into your AI chat, describe the task, and ask for two bodies (before / after MITM) with <b>no</b> <code>function</code> wrapper. Use <b>Preset snippets</b> under the textarea to fill or copy examples.</p>
<button type="button" class="btn-secondary btn-sm" id="btn-copy-intercept-ai-prompt">Copy prompt</button>
</div>
<textarea id="intercept-ai-prompt-editor" class="script-ai-prompt-text" readonly rows="18" spellcheck="false" aria-label="LLM prompt (read-only)"></textarea>
</div>
<div class="script-preset-row">
<label>Preset snippets</label>
<select id="script-snippet-preset" title="Insert or copy example before/after bodies">
<option value="">— Choose preset —</option>
</select>
<button type="button" class="btn-secondary btn-sm" id="btn-script-preset-insert">Insert into fields</button>
<button type="button" class="btn-secondary btn-sm" id="btn-script-preset-copy">Copy snippet</button>
</div>
<div class="form-row" style="margin-top:10px">
<label>Before upstream (function body, argument <code>ctx</code>)</label>
<textarea id="edit-script-before" class="script-textarea" placeholder="// ctx.url, ctx.method, ctx.headers, ctx.orderedHeaders, ctx.body, ctx.bodyBase64 ctx.headers['X-Demo'] = '1';" spellcheck="false" autocomplete="off"></textarea>
</div>
<div class="form-row">
<label>After server response (<code>ctx.response</code>: status, headers, body)</label>
<textarea id="edit-script-after" class="script-textarea" placeholder="// ctx.response.statusCode, ctx.response.headers, ctx.response.bodyBase64 // ctx.request — request snapshot after the "before" phase" spellcheck="false" autocomplete="off"></textarea>
</div>
<div class="toolbar-row" style="margin-top:4px">
<button type="button" class="btn-secondary btn-sm" id="btn-test-script">Run script self-test</button>
</div>
<pre id="script-test-out" aria-live="polite"></pre>
</div>
<div class="form-actions">
<button class="btn-primary" id="btn-save-intercept">Save Rule</button>
<button class="btn-secondary" id="btn-cancel-intercept">Cancel</button>
</div>
</div>
<div id="intercept-list" class="rule-list"></div>
</div>
<!-- ══════════════════════ ACTIVITY LOG ══════════════════════════════════════ -->
<div id="tab-activity" class="tab-content">
<div class="toolbar-row">
<h2>Intercept Activity</h2>
<button class="btn-secondary btn-sm" id="btn-clear-activity">✕ Clear</button>
</div>
<div class="description">
Live log of intercept rule matches. Grouped by page navigation. Counter resets on clear.
</div>
<div id="activity-log" class="rule-list" style="gap:0"></div>
</div>
<script src="rules.js"></script>
</body>
</html>