-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
203 lines (182 loc) · 5.81 KB
/
options.html
File metadata and controls
203 lines (182 loc) · 5.81 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WhatsApp Customizer — Settings</title>
<style>
:root {
--wa-bg: #1a1b26;
--wa-surface: #242530;
--wa-surface-2: #2d2e3b;
--wa-border: #2d2e3b;
--wa-text: #e0e0e0;
--wa-muted: #a0a0a0;
--wa-accent: #10b981;
--wa-accent-hover: #34d399;
--wa-glow: 0 0 8px rgba(16, 185, 129, 0.3);
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
background: var(--wa-bg);
color: var(--wa-text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Inter", sans-serif;
line-height: 1.55;
font-size: 15px;
}
.wrap {
max-width: 720px;
margin: 40px auto;
padding: 0 24px 60px;
}
h1 {
font-size: 22px;
margin: 0 0 24px;
font-weight: 700;
}
h2 {
font-size: 13px;
margin: 0 0 8px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--wa-muted);
}
.card {
background: var(--wa-surface);
border: 1px solid var(--wa-border);
border-radius: 10px;
padding: 16px 20px;
margin: 12px 0;
}
/* Disclosure card — visually loud on purpose. With no consent toggle,
this is the user's primary in-product disclosure. */
.disclosure {
border: 2px solid var(--wa-accent);
background: rgba(16, 185, 129, 0.08);
box-shadow: var(--wa-glow);
}
.disclosure h2 { color: var(--wa-accent); }
p { margin: 0 0 10px; }
.sub { color: var(--wa-muted); font-size: 14px; }
a { color: var(--wa-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.id-row {
display: flex;
gap: 8px;
align-items: center;
}
.id-value {
flex: 1;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
font-size: 13px;
background: var(--wa-bg);
border: 1px solid var(--wa-border);
border-radius: 6px;
padding: 8px 10px;
color: var(--wa-text);
user-select: all;
overflow-x: auto;
white-space: nowrap;
}
button.copy {
font-size: 13px;
padding: 8px 14px;
border-radius: 6px;
border: 1px solid var(--wa-border);
background: var(--wa-surface-2);
color: var(--wa-text);
cursor: pointer;
}
button.copy:hover { border-color: var(--wa-accent); }
.copied-flash {
color: var(--wa-accent);
font-size: 12px;
margin-left: 8px;
opacity: 0;
transition: opacity 0.15s;
}
.copied-flash.show { opacity: 1; }
ul { padding-left: 20px; margin: 4px 0 0; }
li { margin-bottom: 4px; }
.two-col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.two-col .col h3 {
font-size: 13px;
font-weight: 700;
margin: 0 0 6px;
text-transform: uppercase;
letter-spacing: 0.4px;
}
.two-col .col.collected h3 { color: var(--wa-accent); }
.two-col .col.never h3 { color: #f97316; }
@media (max-width: 540px) {
.two-col { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<div class="wrap">
<h1>WhatsApp Customizer — Settings</h1>
<h2>About usage data</h2>
<div class="card disclosure">
<p>
This extension sends anonymous usage statistics so we can see which
features matter and which to retire. Events are sent to PostHog on
EU servers (<code>eu.i.posthog.com</code>) over HTTPS. IP-based
geolocation is disabled at the project level, and your IP is not
stored against your events.
</p>
<div class="two-col" style="margin-top: 14px;">
<div class="col collected">
<h3>Collected</h3>
<ul>
<li>Which customization features you trigger (event name + categorical metadata)</li>
<li>Counts (e.g. number of quick replies)</li>
<li>Extension version and your browser language</li>
<li>The anonymous ID below</li>
</ul>
</div>
<div class="col never">
<h3>Never collected</h3>
<ul>
<li>Messages or anything you type in WhatsApp</li>
<li>Contact names, phone numbers, profile pictures</li>
<li>Group names or member lists</li>
<li>Search queries or chat titles</li>
</ul>
</div>
</div>
</div>
<h2>Your anonymous ID</h2>
<div class="card">
<p class="sub" style="margin-bottom: 12px;">
This random ID is generated locally and is the only identifier
attached to your events. Include it in deletion requests so we can
remove your data (GDPR / Swiss FADP — right to erasure).
</p>
<div class="id-row">
<code class="id-value" id="distinct-id">—</code>
<button class="copy" id="copy-id">Copy</button>
<span class="copied-flash" id="copied-flash">Copied</span>
</div>
</div>
<h2>Privacy policy</h2>
<div class="card">
<p>
Full details:
<!-- TODO: replace before publishing -->
<a id="privacy-link" href="https://github.com/BaskLash/LongDL/blob/main/privacy-policy" target="_blank" rel="noopener">privacy policy</a>
</p>
</div>
</div>
<script src="track.js"></script>
<script src="options.js"></script>
</body>
</html>