-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
167 lines (138 loc) · 4.59 KB
/
index.html
File metadata and controls
167 lines (138 loc) · 4.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebScope — Privacy & Performance X-Ray</title>
<meta name="description" content="Local-first tool that reveals browser fingerprinting and website performance costs. No tracking. No backend." />
<!-- Styles -->
<link rel="stylesheet" href="styles/base.css" />
<link rel="stylesheet" href="styles/layout.css" />
<link rel="stylesheet" href="styles/components.css" />
<!-- Favicon (optional) -->
<!-- <link rel="icon" href="assets/favicon.svg" /> -->
</head>
<body>
<!-- Header -->
<header class="site-header">
<h1 class="site-title">WebScope</h1>
<p class="site-tagline">
Privacy & performance X-ray for the modern web.
</p>
</header>
<!-- Main -->
<main class="dashboard">
<section class="panel panel-test">
<header class="panel-header">
<h2>Test a URL</h2>
<p class="panel-subtitle">
Load a website and analyze its performance locally
</p>
</header>
<form id="url-form">
<input
type="url"
id="test-url"
placeholder="https://example.com"
required
/>
<button type="submit">Test</button>
</form>
<iframe
id="test-frame"
sandbox="allow-scripts allow-same-origin"
loading="lazy"
></iframe>
</section>
<!-- Privacy Panel -->
<section class="panel panel-privacy" aria-labelledby="privacy-title">
<header class="panel-header">
<h2 id="privacy-title">Privacy Fingerprint</h2>
<p class="panel-subtitle">
Signals your browser exposes to websites
</p>
</header>
<div class="metrics-grid">
<div class="metric">
<span class="metric-label">User Agent</span>
<strong class="metric-value" id="ua">—</strong>
</div>
<div class="metric">
<span class="metric-label">Platform</span>
<strong class="metric-value" id="platform">—</strong>
</div>
<div class="metric">
<span class="metric-label">Language</span>
<strong class="metric-value" id="language">—</strong>
</div>
<div class="metric">
<span class="metric-label">Timezone</span>
<strong class="metric-value" id="timezone">—</strong>
</div>
<div class="metric">
<span class="metric-label">Screen</span>
<strong class="metric-value" id="screen">—</strong>
</div>
<div class="metric">
<span class="metric-label">GPU</span>
<strong class="metric-value" id="gpu">—</strong>
</div>
</div>
<div class="risk-summary">
<span class="risk-label">Fingerprint Uniqueness Risk</span>
<div class="risk-bar">
<div class="risk-fill" id="risk-fill"></div>
</div>
<span class="risk-value" id="risk-value">—</span>
</div>
</section>
<!-- Performance Panel -->
<section class="panel panel-performance" aria-labelledby="performance-title">
<header class="panel-header">
<h2 id="performance-title">Performance X-Ray</h2>
<p class="panel-subtitle">
Page load cost and resource timing
</p>
</header>
<div class="performance-metrics">
<div class="perf-row">
<span>DNS Lookup</span>
<strong id="dns">—</strong>
</div>
<div class="perf-row">
<span>TCP Connect</span>
<strong id="tcp">—</strong>
</div>
<div class="perf-row">
<span>Time to First Byte</span>
<strong id="ttfb">—</strong>
</div>
<div class="perf-row">
<span>DOM Loaded</span>
<strong id="dom">—</strong>
</div>
<div class="perf-row">
<span>Total Load</span>
<strong id="load">—</strong>
</div>
</div>
<div class="waterfall" id="waterfall" aria-label="Resource loading waterfall">
<!-- Resource bars injected by JS -->
</div>
</section>
</main>
<!-- Footer -->
<footer class="site-footer">
<button id="export-json">Export Report (JSON)</button>
<p>
<strong>WebScope</strong> runs entirely in your browser.
No tracking. No backend. No data leaves your device.
</p>
</footer>
<!-- Scripts -->
<script src="js/utils.js"></script>
<script src="js/performance.js"></script>
<script src="js/privacy.js"></script>
<script src="js/ui.js" defer></script>
</body>
</html>