-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.html
More file actions
532 lines (491 loc) · 23.5 KB
/
settings.html
File metadata and controls
532 lines (491 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
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
<!-- 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>
<style>
/* CSS Variables for theming */
:root {
/* Light theme (default) */
--primary-color: #05A55D;
--text-color: #333;
--light-gray: #f5f5f5;
--border-color: #e0e0e0;
--success-color: #34A853;
--error-color: #EA4335;
--background-color: #FFFFFF;
--input-background: #FFFFFF;
--input-border: #e0e0e0;
--section-background: #FFFFFF;
--message-success-bg: #E8F5E9;
--message-success-color: #1B5E20;
--message-error-bg: #FFEBEE;
--message-error-color: #B71C1C;
--button-hover: #EE2E91;
--icon-opacity: 0.15;
--close-button-color: #666;
--close-button-hover: rgba(0,0,0,0.05);
}
/* Dark theme */
[data-theme="dark"] {
--primary-color: #05A55D;
--text-color: #FCFCFF;
--light-gray: #2A2A35;
--border-color: #4D4D57;
--success-color: #34A853;
--error-color: #F28B82;
--background-color: #23222B;
--input-background: #33323D;
--input-border: #4D4D57;
--section-background: #33323D;
--message-success-bg: #143A24;
--message-success-color: #7AE28C;
--message-error-bg: #4C1B1A;
--message-error-color: #F5AEA6;
--button-hover: #FF5DB1;
--icon-opacity: 0.25;
--close-button-color: #aaa;
--close-button-hover: rgba(255,255,255,0.1);
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
margin: 0;
padding: 0;
color: var(--text-color);
background-color: var(--background-color);
line-height: 1.6;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 30px 20px;
}
h1 {
font-family: 'Poppins', sans-serif;
font-size: 25px;
font-weight: 400;
margin-bottom: 25px;
color: var(--primary-color);
padding-bottom: 10px;
position: relative;
letter-spacing: -0.5px;
}
.header-container {
position: relative;
margin-bottom: 30px;
}
.background-icon {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 45px;
height: 45px;
opacity: var(--icon-opacity);
background-image: url('resources/96.png');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
.section {
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 15px 20px;
margin-bottom: 35px;
margin-top: 15px;
position: relative;
background-color: var(--section-background);
}
.section-title {
font-size: 15px;
font-weight: 500;
color: var(--primary-color);
position: absolute;
top: -22px;
left: 15px;
background-color: var(--background-color);
padding: 3px 12px;
border-radius: 4px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
border: 1px solid var(--border-color);
}
.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%;
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;
}
#messageBox {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 15px 25px;
border-radius: 4px;
display: none;
font-size: 14px;
z-index: 1000;
max-width: 80%;
text-align: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.success-message {
background-color: var(--message-success-bg);
border-left: 4px solid var(--success-color);
color: var(--message-success-color);
}
.error-message {
background-color: var(--message-error-bg);
border-left: 4px solid var(--error-color);
color: var(--message-error-color);
}
#closeMessage {
position: absolute;
top: 5px;
right: 5px;
background: none;
border: none;
color: var(--close-button-color);
font-size: 18px;
cursor: pointer;
padding: 0;
margin: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
#closeMessage:hover {
background-color: var(--close-button-hover);
}
#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>
<!-- mySniper -->
<div class="section">
<div class="section-title" title="Configure your 'Most Wanted' list of domains to specifically delete.">mySniper</div>
<div class="settings-option">
<div class="option-content" title="Add domains such as 'google.com' or '.google.com' to delete cookies from these specific domains. Place a '*' before the domain, like '*google.com', to delete all cookies associated with that domain, regardless of the subdomains. Use a comma to separate multiple domains.">
<img src="resources/icon6.svg" alt="Sniper domains icon">
<span>Domains to snipe</span>
</div>
</div>
<textarea id="sniperDomains" placeholder="google.com, *google.com, facebook.com" title="Add domains such as 'google.com' or '.google.com' to delete cookies from these specific domains. Place a '*' before the domain, like '*google.com', to delete all cookies associated with that domain, regardless of the subdomains. Use a comma to separate multiple domains."></textarea>
</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) and reset all of the above settings back to their factory defaults.">
<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="settings.js"></script>
</body>
</html>