Repository navigation
Expand file tree
/
Copy pathsettings.html
More file actions
438 lines (406 loc) · 23.5 KB
/
Copy pathsettings.html
File metadata and controls
438 lines (406 loc) · 23.5 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
<!-- SimpleCookie, a minimalist yet efficient cookie manager for Firefox -->
<!-- Made with ❤ by micka from Paris -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Settings page for the SimpleCookie Firefox extension">
<title>SimpleCookie | Settings</title>
<link rel="stylesheet" href="theme.css">
<style>
.settings-option {
display: flex;
align-items: center;
margin-bottom: 12px;
justify-content: space-between;
}
.settings-option:last-child {
margin-bottom: 0;
}
.option-content {
display: flex;
align-items: center;
flex: 1;
}
.option-content img {
width: 18px;
height: 18px;
margin-right: 15px;
vertical-align: middle;
}
.option-content a {
display: flex;
align-items: center;
text-decoration: none;
color: var(--text-color);
width: 100%;
}
.option-content span {
flex: 1;
}
input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 20px;
height: 20px;
border: 2px solid var(--border-color);
border-radius: 4px;
outline: none;
cursor: pointer;
position: relative;
margin-left: 10px;
}
input[type="checkbox"]:checked {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
input[type="checkbox"]:checked::before {
content: "✓";
position: absolute;
color: white;
font-size: 14px;
font-weight: bold;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
textarea {
width: 100%;
box-sizing: border-box;
padding: 8px;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 13px;
color: var(--text-color);
background-color: var(--input-background);
font-family: monospace;
resize: vertical;
}
.danger-icon {
width: 16px !important;
height: 16px !important;
margin-left: 8px !important;
margin-right: 0 !important;
vertical-align: middle !important;
position: relative;
top: -0.5px;
}
.shortcut-select {
width: 220px;
box-sizing: border-box;
padding: 6px 10px;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 13px;
color: var(--text-color);
background-color: var(--input-background);
cursor: pointer;
}
#shortcutKeyDisplay {
color: var(--primary-color);
}
.shortcut-configure-link {
color: var(--primary-color);
font-size: 13px;
font-weight: 500;
text-decoration: none;
white-space: nowrap;
}
.shortcut-configure-link:hover {
text-decoration: underline;
}
#imagePopup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(--section-background);
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 1000;
text-align: center;
}
#overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
}
.version-text {
margin-top: 20px;
text-align: right;
font-size: 12px;
color: #777;
}
@media (prefers-color-scheme: dark) {
.settings-option img:not(.danger-icon) {
filter: invert(100%);
}
}
</style>
</head>
<body>
<div class="container">
<div class="header-container">
<h1>SimpleCookie | <b>Settings</b></h1>
<div class="background-icon"></div>
</div>
<div id="messageBox">
<span id="messageText"></span>
<button id="closeMessage" aria-label="Close message">×</button>
</div>
<!-- Insights -->
<div class="section">
<div class="section-title" title="Customize the details displayed in SimpleCookie by showing or hiding specific aspects of websites and their associated cookies.">Insights</div>
<div class="settings-option">
<div class="option-content" title="Display an eye indicator next to the website corresponding to the active tab when you run SimpleCookie so you can easily locate, view and delete the cookies for the current website.">
<img src="resources/insight_eye.svg" alt="Active tab icon">
<span>Highlight the active tab</span>
</div>
<input type="checkbox" id="enableActiveTabHighlight" aria-label="Highlight the active tab">
</div>
<div class="settings-option">
<div class="option-content" title="Display a ghost icon for known tracking sites using an internal list derived from the 'Ghostery Tracker Database' to identify organizations/websites known to track behavior. While this does not confirm the collection of data in requests and cookies from these sites, they are known for their impact on user privacy. These websites are always listed in SimpleCookie, only the icon is optional.">
<img src="resources/insight_ghost.svg" alt="Tracking icon">
<span>Highlight tracking websites</span>
</div>
<input type="checkbox" id="enableGhostIcon" aria-label="Highlight tracking websites">
</div>
<div class="settings-option">
<div class="option-content" title="Highlight websites that store cookies in special containers (i.e., all containers you create except the default container). This is useful if you use Firefox's special container feature. These websites are always listed in SimpleCookie, only the icon is optional.">
<img src="resources/insight_container.svg" alt="Container icon">
<span>Highlight websites from special containers</span>
</div>
<input type="checkbox" id="enableSpecialJarIcon" aria-label="Highlight special container websites">
</div>
<div class="settings-option">
<div class="option-content" title="Highlight websites that have partitioned cookies, also known as CHIPS (Cookies Having Independent Partitioned State). Without partitioning, third-party cookies can track users and combine their information with many unrelated websites. This is now restricted with CHIPS. These websites are always listed in SimpleCookie, only the icon is optional.">
<img src="resources/insight_partition.svg" alt="Partition icon">
<span>Highlight websites with partitioned cookies</span>
</div>
<input type="checkbox" id="enablePartitionIcon" aria-label="Highlight partitioned cookie websites">
</div>
<div class="settings-option">
<div class="option-content" title="Highlight websites with at least one cookie that looks like a session or authentication cookie (based on its name) but is missing the Secure and/or HttpOnly protection. This is a heuristic, not a guarantee: it cannot see how a site actually uses the cookie, only how it was set. These websites are always listed in SimpleCookie, only the icon is optional. Off by default.">
<img src="resources/insight_risky.svg" alt="Risky cookie icon">
<span>Highlight cookies at risk</span>
</div>
<input type="checkbox" id="enableRiskyCookieIcon" aria-label="Highlight websites with risky cookies">
</div>
</div>
<!-- mySniper -->
<div class="section">
<div class="section-title" title="Keywords that are never allowed to appear in a cookie's domain. There is no button to press: as soon as a keyword is on this list, any matching cookie is deleted automatically — right away if it already exists, and the instant a new one appears from then on. Firefox has no way to truly stop a cookie from being set at all, so this is 'delete on sight', not real prevention.">mySniper</div>
<div class="settings-option">
<div class="option-content" title="Type a plain keyword such as 'google' or 'linkedin' — any cookie whose domain contains that word anywhere (any subdomain, any country TLD) is deleted automatically, no matter what comes before or after it. Any matching cookie that already exists is removed right away; new ones are deleted the instant they appear. Use a comma to separate multiple keywords. Keywords under 3 characters are ignored, to avoid matching too many unrelated sites. Favorite domains are never touched. Removing a keyword from this list simply stops the auto-deletion.">
<img src="resources/icon6.svg" alt="Sniper keywords icon">
<span>Keywords to keep cookie-free <img src="resources/settings_danger.svg" class="danger-icon" alt="Warning" aria-label="Warning"></span>
</div>
</div>
<textarea id="sniperDomains" placeholder="google, linkedin, facebook" title="Type a plain keyword such as 'google' or 'linkedin' — any cookie whose domain contains that word anywhere (any subdomain, any country TLD) is deleted automatically, no matter what comes before or after it. Any matching cookie that already exists is removed right away; new ones are deleted the instant they appear. Use a comma to separate multiple keywords. Keywords under 3 characters are ignored, to avoid matching too many unrelated sites. A broad keyword can break other sites that share its cookies — e.g. 'google' can break YouTube sign-in. Favorite domains are never touched. Removing a keyword from this list simply stops the auto-deletion."></textarea>
</div>
<!-- Keyboard shortcut -->
<div class="section">
<div class="section-title" title="Assign a single keyboard shortcut to instantly trigger one SimpleCookie action from anywhere in Firefox, without opening the pop-up first. Only one action can be assigned at a time.">Keyboard shortcut</div>
<div class="settings-option">
<div class="option-content" title="Choose which action the shortcut below performs.">
<img src="resources/settings_shortcut.svg" alt="Shortcut action icon">
<span>Action to trigger</span>
</div>
<select id="shortcutAction" class="shortcut-select" aria-label="Action triggered by the keyboard shortcut">
<option value="openPopup">Open SimpleCookie</option>
<option value="deleteClosedTabsCookies">Delete cookies from closed tabs</option>
<option value="deleteAllCookies">Delete all cookies (except favorites)</option>
<option value="myCleaner">Run myCleaner</option>
</select>
</div>
<div class="settings-option">
<div class="option-content" title="Opens Firefox's own shortcut manager, where you record the key combination directly — it already knows which combinations are free on your system, on Mac, Windows, or Linux.">
<img src="resources/settings_shortcut.svg" alt="Shortcut key icon">
<span>Shortcut: <strong id="shortcutKeyDisplay">Not set</strong></span>
</div>
<a href="#" id="configureShortcut" class="shortcut-configure-link">Configure in Firefox…</a>
</div>
<div class="settings-option">
<div class="option-content">
<a href="#" id="clearShortcut" title="Removes the assigned key combination. The action selected above stays chosen for next time you assign one.">
<img src="resources/settings_reset.svg" alt="Clear shortcut icon">
<span>Clear shortcut</span>
</a>
</div>
</div>
</div>
<!-- myCleaner -->
<div class="section">
<div class="section-title" title="myCleaner is your personalized cleaner shortcut to delete what you want (browsing and download history are enabled by default). Feel free to select or deselect any of the options below.">myCleaner</div>
<div class="settings-option">
<div class="option-content" title="Small files stored by websites to remember user preferences and login information. Checking this box will delete all cookies, regardless of their favorites status. If you want to delete everything except your favorite cookies, leave this checkbox unchecked and use the Vacuum icon in the Dock when needed, as it intentionally does not override the favorites status.">
<img src="resources/settings_cookies.svg" alt="Cookies icon">
<span>Cookies <img src="resources/settings_danger.svg" class="danger-icon" alt="Warning" aria-label="Warning"></span>
</div>
<input type="checkbox" id="mycleanerCookies" aria-label="Clean cookies">
</div>
<div class="settings-option">
<div class="option-content" title="A record of websites you've visited, including dates and times.">
<img src="resources/settings_history.svg" alt="History icon">
<span>Browsing history</span>
</div>
<input type="checkbox" id="mycleanerBrowsingHistory" aria-label="Clean browsing history">
</div>
<div class="settings-option">
<div class="option-content" title="Temporary files stored by Firefox to speed up loading times for frequently visited websites.">
<img src="resources/settings_ram.svg" alt="Cache icon">
<span>Cached images and files</span>
</div>
<input type="checkbox" id="mycleanerCache" aria-label="Clean cached images and files">
</div>
<div class="settings-option">
<div class="option-content" title="Saved information that automatically populates forms, such as names, addresses, and credit card details.">
<img src="resources/settings_form.svg" alt="Form data icon">
<span>Autofill form data</span>
</div>
<input type="checkbox" id="mycleanerAutofill" aria-label="Clean form data">
</div>
<div class="settings-option">
<div class="option-content" title="A log of files you've downloaded from the web, including their locations.">
<img src="resources/settings_download.svg" alt="Download history icon">
<span>Download history</span>
</div>
<input type="checkbox" id="mycleanerDownloadHistory" aria-label="Clean download history">
</div>
<div class="settings-option">
<div class="option-content" title="Scripts that run in the background to manage caching and background tasks for web applications.">
<img src="resources/settings_service.svg" alt="Service workers icon">
<span>Service workers</span>
</div>
<input type="checkbox" id="mycleanerService" aria-label="Clean service workers">
</div>
<div class="settings-option">
<div class="option-content" title="Information stored by browser extensions or plugins to enhance their functionality.">
<img src="resources/settings_plugin.svg" alt="Plugin data icon">
<span>Plugin data</span>
</div>
<input type="checkbox" id="mycleanerPlugin" aria-label="Clean plugin data">
</div>
<div class="settings-option">
<div class="option-content" title="Data stored by websites on your device for offline access and persistent state.">
<img src="resources/settings_local.svg" alt="Local storage icon">
<span>Local storage data</span>
</div>
<input type="checkbox" id="mycleanerLocal" aria-label="Clean local storage data">
</div>
<div class="settings-option">
<div class="option-content" title="A low-level API for storing large amounts of structured data in the browser, allowing for efficient retrieval.">
<img src="resources/settings_indexed.svg" alt="IndexedDB icon">
<span>IndexedDB data</span>
</div>
<input type="checkbox" id="mycleanerIndexed" aria-label="Clean indexedDB data">
</div>
<div class="settings-option">
<div class="option-content" title="Usernames and passwords stored in the Firefox password manager. You should be very careful here...">
<img src="resources/settings_passwords.svg" alt="Passwords icon">
<span>Saved passwords <img src="resources/settings_danger.svg" class="danger-icon" alt="Warning" aria-label="Warning"></span>
</div>
<input type="checkbox" id="mycleanerPasswords" aria-label="Clean saved passwords">
</div>
</div>
<!-- Advanced settings -->
<div class="section">
<div class="section-title" title="Extra settings for advanced users.">Advanced</div>
<div class="settings-option">
<div class="option-content" title="Display the open tabs that store cookies (highlighted in green) at the top of the pop-up. Both the open tabs section and the rest of the websites will be sorted alphabetically">
<img src="resources/settings_opentabstop.svg" alt="Tabs icon">
<span>Open tabs first</span>
</div>
<input type="checkbox" id="OpenTabsTop" aria-label="Open tabs at the top">
</div>
<div class="settings-option">
<div class="option-content" title="Display the number of cookies for the active tab on the addon icon">
<img src="resources/settings_number.svg" alt="Badge number icon">
<span>Show cookie count badge on icon</span>
</div>
<input type="checkbox" id="showCookieCountBadge" aria-label="Show cookie count badge">
</div>
<div class="settings-option">
<div class="option-content">
<a href="#" id="createCookie" title="Create a new cookie with custom parameters">
<img src="resources/settings_cookies.svg" alt="Create cookie icon">
<span>Create new cookie</span>
</a>
</div>
</div>
<div class="settings-option">
<div class="option-content">
<a href="#" id="resetButton" title="Clear all of your favorites (not the cookies, just the 'star' status), your mySniper keyword list, your keyboard shortcut, and reset all of the above settings back to their factory defaults. Asks for confirmation first.">
<img src="resources/settings_reset.svg" alt="Reset icon">
<span>Reset your favorites and settings</span>
</a>
</div>
</div>
<div class="settings-option">
<div class="option-content">
<a href="#" id="exportCookies" title="Export all cookies stored by Firefox to a JSON file. Be careful here, as all cookies will be stored in clear text in an unencrypted file, allowing anyone with the file to eventually log in to some sites using your stored credentials.">
<img src="resources/settings_export.svg" alt="Export icon">
<span>Export cookies</span>
</a>
</div>
</div>
<div class="settings-option">
<div class="option-content">
<a href="#" id="importCookies" title="Import cookies from a JSON file. Be careful what kind of cookies you are importing. Use this feature if you know what you are doing, or if you are importing your own JSON file that you have previously exported. Some cookies may not be imported if, for example, their expiry dates have been passed.">
<img src="resources/settings_import.svg" alt="Import icon">
<span>Import cookies</span>
</a>
</div>
</div>
</div>
<!-- Links -->
<div class="section">
<div class="section-title" title="Useful links (especially the last one!)">Links</div>
<div class="settings-option">
<div class="option-content">
<a href="https://github.com/mickaphd/SimpleCookie" target="_blank" rel="noopener noreferrer" title="SimpleCookie repository on GitHub. Feel free to report any problems or requests there.">
<img src="resources/settings_github.svg" alt="GitHub icon">
<span>GitHub repository</span>
</a>
</div>
</div>
<div class="settings-option">
<div class="option-content">
<a href="https://addons.mozilla.org/en-US/firefox/addon/simplecookie/" target="_blank" rel="noopener noreferrer" title="SimpleCookie in the Firefox Add-ons store.">
<img src="resources/settings_fox.svg" alt="Firefox icon">
<span>Firefox Add-ons store</span>
</a>
</div>
</div>
<div class="settings-option">
<div class="option-content">
<a href="#" id="tipIcon" title="Tip me with bitcoin over the Lightning network (Bolt12 invoice). Thank you!">
<img src="resources/settings_lightning.svg" alt="Lightning icon">
<span>Tip me with ₿ on Lightning!</span>
</a>
</div>
</div>
</div>
<!-- Tip popup -->
<div id="imagePopup">
<p style="margin-top: 2px; font-size: 14px; color: var(--text-color);">
<b><i>Thank you for your support</i> ❤️</b>
</p>
<img src="resources/lightning_bolt12.jpeg" alt="Lightning QR code" style="max-width: 220px; height: auto;">
<p style="margin-top: 2px; font-size: 14px; color: var(--text-color);">azuresync08@phoenixwallet.me</p>
</div>
<div id="overlay"></div>
<div id="version-text" class="version-text">SimpleCookie v</div>
</div>
<script src="common.js"></script>
<script src="settings.js"></script>
</body>
</html>