-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdevtools-panel.html
More file actions
201 lines (181 loc) · 5.97 KB
/
devtools-panel.html
File metadata and controls
201 lines (181 loc) · 5.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DRM Watcher DevTools</title>
<style>
:root {
--bg-primary: #0d0d0d;
--bg-secondary: #1a1a1a;
--bg-tertiary: #262626;
--bg-card: #1f1f1f;
--bg-hover: #2d2d2d;
--text-primary: #f5f5f5;
--text-secondary: #a3a3a3;
--text-muted: #737373;
--accent-primary: #6b7280;
--accent-hover: #4b5563;
--accent-light: #9ca3af;
--accent-success: #16a34a;
--border-primary: #404040;
--border-light: #525252;
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: var(--bg-primary);
color: var(--text-primary);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 13px;
height: 100vh;
overflow: hidden;
}
.devtools-container {
display: flex;
flex-direction: column;
height: 100%;
}
.devtools-header {
background: var(--bg-secondary);
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border-primary);
display: flex;
justify-content: space-between;
align-items: center;
}
.header-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
}
.header-icon {
width: 18px;
height: 18px;
color: var(--accent-light);
}
.header-controls {
display: flex;
gap: 0.75rem;
}
.devtools-content {
flex: 1;
overflow-y: auto;
padding: 1rem;
}
.network-request {
background: var(--bg-card);
border: 1px solid var(--border-primary);
border-radius: 0.75rem;
margin-bottom: 0.75rem;
overflow: hidden;
transition: all 0.2s ease;
}
.network-request:hover {
border-color: var(--border-light);
box-shadow: var(--shadow-sm);
}
.request-header {
background: var(--bg-tertiary);
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border-primary);
}
.request-url {
color: var(--accent-light);
word-break: break-all;
margin-bottom: 0.25rem;
font-family: "SF Mono", "Monaco", "Consolas", monospace;
font-size: 12px;
}
.request-details {
padding: 1rem;
color: var(--text-secondary);
font-family: "SF Mono", "Monaco", "Consolas", monospace;
font-size: 11px;
line-height: 1.4;
}
.btn {
background: var(--accent-primary);
border: none;
color: white;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
cursor: pointer;
font-size: 12px;
font-weight: 500;
transition: all 0.15s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn:hover {
background: var(--accent-hover);
transform: translateY(-1px);
}
.btn-icon {
width: 14px;
height: 14px;
}
.empty-state {
text-align: center;
padding: 3rem 1.5rem;
color: var(--text-muted);
}
.empty-icon {
width: 48px;
height: 48px;
margin: 0 auto 1rem;
color: var(--border-light);
}
</style>
</head>
<body>
<div class="devtools-container">
<div class="devtools-header">
<div class="header-title">
<svg class="header-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/>
<path d="21 21l-4.35-4.35"/>
</svg>
DRM Watcher - Network Monitor
</div>
<div class="header-controls">
<button id="clearRequests" class="btn">
<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="3,6 5,6 21,6"/>
<path d="19,6v14a2,2 0 0,1-2,2H7a2,2 0 0,1-2-2V6m3,0V4a2,2 0 0,1,2-2h4a2,2 0 0,1,2,2v2"/>
</svg>
Clear
</button>
<button id="exportRequests" class="btn">
<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="7,10 12,15 17,10"/>
<line x1="12" y1="15" x2="12" y2="3"/>
</svg>
Export
</button>
</div>
</div>
<div class="devtools-content">
<div id="requestsList">
<div class="empty-state">
<svg class="empty-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<circle cx="11" cy="11" r="8"/>
<path d="21 21l-4.35-4.35"/>
</svg>
<p>No DRM-related requests captured yet.<br>Start browsing to see network activity.</p>
</div>
</div>
</div>
</div>
<script src="devtools-panel.js"></script>
</body>
</html>