Repository navigation
Expand file tree
/
Copy pathoptions.html
More file actions
742 lines (648 loc) · 25.2 KB
/
Copy pathoptions.html
File metadata and controls
742 lines (648 loc) · 25.2 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
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Memento Mori Settings</title>
<link
href="https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap"
rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #0f1b3c;
font-family: 'Crimson Text', serif;
color: #e2e8f0;
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: rgba(15, 27, 60, 0.6);
border-radius: 20px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 215, 0, 0.3);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.header {
background: rgba(255, 215, 0, 0.1);
padding: 30px;
text-align: center;
border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}
.header h1 {
font-family: 'UnifrakturCook', serif;
font-size: 42px;
font-weight: 700;
margin-bottom: 10px;
color: #ffd700;
text-shadow:
2px 2px 4px rgba(0, 0, 0, 0.8),
0 0 20px rgba(255, 215, 0, 0.3);
letter-spacing: 2px;
}
.header .candle-icon {
font-size: 32px;
margin-bottom: 15px;
}
.content {
padding: 30px;
}
.section {
margin-bottom: 40px;
padding: 25px;
background: rgba(30, 58, 138, 0.2);
border-radius: 15px;
border: 1px solid rgba(255, 215, 0, 0.2);
}
.section-title {
font-family: 'UnifrakturCook', serif;
font-size: 28px;
font-weight: 700;
margin-bottom: 20px;
color: #ffd700;
display: flex;
align-items: center;
gap: 10px;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.form-group {
margin-bottom: 20px;
}
.form-label {
display: block;
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
color: #e0e0e0;
}
.form-input {
width: 100%;
padding: 12px 16px;
background: rgba(30, 58, 138, 0.3);
border: 1px solid rgba(255, 215, 0, 0.3);
border-radius: 8px;
color: #e0e0e0;
font-size: 16px;
font-family: inherit;
}
.form-input:focus {
outline: none;
border-color: #ffd700;
box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.form-select {
width: 100%;
padding: 12px 16px;
background: rgba(30, 58, 138, 0.3);
border: 1px solid rgba(255, 215, 0, 0.3);
border-radius: 8px;
color: #e0e0e0;
font-size: 16px;
font-family: inherit;
}
.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.checkbox-group input[type="checkbox"] {
accent-color: #ffd700;
transform: scale(1.2);
}
.checkbox-group label {
font-size: 16px;
color: #e0e0e0;
cursor: pointer;
}
.privacy-notice {
background: rgba(255, 215, 0, 0.1);
border: 1px solid rgba(255, 215, 0, 0.3);
border-radius: 8px;
padding: 15px;
margin: 15px 0;
font-size: 14px;
color: #e2e8f0;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-family: inherit;
margin-right: 10px;
margin-bottom: 10px;
}
.btn-primary {
background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
color: #0f1b3c;
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}
.btn-secondary {
background: rgba(30, 58, 138, 0.3);
color: #ffd700;
border: 1px solid #ffd700;
}
.btn-secondary:hover {
background: rgba(255, 215, 0, 0.2);
transform: translateY(-2px);
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-danger:hover {
background: #c82333;
transform: translateY(-2px);
}
.schedule-form {
background: rgba(15, 27, 60, 0.4);
padding: 20px;
border-radius: 10px;
margin-bottom: 20px;
border: 1px solid rgba(255, 215, 0, 0.2);
}
.schedule-form h4 {
color: #ffd700;
margin-bottom: 15px;
font-family: 'UnifrakturCook', serif;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
margin-bottom: 15px;
}
.schedule-item {
background: rgba(30, 58, 138, 0.2);
border: 1px solid rgba(255, 215, 0, 0.2);
border-radius: 10px;
padding: 20px;
margin-bottom: 15px;
}
.schedule-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.schedule-name {
font-size: 18px;
font-weight: 600;
color: #ffd700;
}
.schedule-status {
padding: 4px 12px;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
}
.status-active {
background: #28a745;
color: white;
}
.status-inactive {
background: #6c757d;
color: white;
}
.support-banner {
background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
padding: 20px;
border-radius: 15px;
text-align: center;
margin-bottom: 30px;
}
.support-banner h3 {
color: white;
font-size: 20px;
margin-bottom: 10px;
}
.support-banner p {
color: rgba(255, 255, 255, 0.9);
margin-bottom: 15px;
}
.kofi-link {
display: inline-block;
padding: 10px 20px;
background: white;
color: #ff5722;
text-decoration: none;
border-radius: 25px;
font-weight: 600;
transition: all 0.3s ease;
}
.kofi-link:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.toast {
position: fixed;
top: 20px;
right: 20px;
padding: 15px 20px;
background: #28a745;
color: white;
border-radius: 8px;
font-weight: 600;
z-index: 1000;
transform: translateX(100%);
transition: transform 0.3s ease;
}
.toast.show {
transform: translateX(0);
}
/* Improved Website Adding Interface */
.website-input-section {
background: rgba(15, 27, 60, 0.3);
border-radius: 12px;
padding: 20px;
border: 1px solid rgba(255, 215, 0, 0.2);
}
.site-input-container {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 10px;
}
.site-input-container .site-input {
flex: 1;
}
.remove-site-btn {
background: #dc3545;
color: white;
border: none;
border-radius: 6px;
padding: 8px 12px;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
}
.remove-site-btn:hover {
background: #c82333;
transform: scale(1.05);
}
.quick-add-section {
margin: 20px 0;
}
.quick-add-buttons {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.quick-add-btn {
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
color: white;
border: none;
border-radius: 20px;
padding: 6px 14px;
font-size: 12px;
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid rgba(255, 215, 0, 0.3);
}
.quick-add-btn:hover {
background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
color: #0f1b3c;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.site-tips {
background: rgba(255, 215, 0, 0.1);
border-radius: 8px;
padding: 15px;
margin-top: 15px;
border-left: 4px solid #ffd700;
}
.site-tips ul {
margin: 10px 0 0 0;
padding-left: 0;
list-style: none;
}
.site-tips li {
margin: 5px 0;
color: #e0e0e0;
font-size: 14px;
}
.watermark {
text-align: center;
padding: 20px;
font-size: 14px;
color: #64748b;
}
.watermark a {
color: #94a3b8;
text-decoration: none;
}
.watermark a:hover {
color: #ffd700;
}
.hidden {
display: none;
}
.site-input-row {
display: flex;
gap: 10px;
margin-bottom: 10px;
align-items: center;
}
.site-input {
flex: 1;
}
.add-site-btn {
padding: 8px 12px;
min-width: 40px;
}
.remove-site-btn {
background: #dc3545;
color: white;
border: none;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
min-width: 40px;
}
.remove-site-btn:hover {
background: #c82333;
}
.locked-input {
background: rgba(100, 100, 100, 0.3) !important;
border-color: #666 !important;
cursor: not-allowed !important;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="candle-icon">🕯️</div>
<h1>Memento Mori Settings</h1>
<p>Configure your mortality reminder and website blocking preferences</p>
</div>
<div class="content">
<div class="support-banner">
<h3>☕ Support Me</h3>
<p>Help keep Memento Mori free and support future development</p>
<a href="https://ko-fi.com/amazingkeymaster" target="_blank" class="kofi-link">
Support Me on Ko-fi
</a>
</div>
<!-- Personal Information Section -->
<div class="section">
<h2 class="section-title">
👤 Personal Information
</h2>
<div class="form-group">
<label class="form-label" for="birthdate">Your Birthdate:</label>
<input type="date" id="birthdate" class="form-input" required>
</div>
<div class="form-group">
<label class="form-label" for="userContinent">Your Continent:</label>
<select id="userContinent" class="form-select"
style="background-color: #1e3a8a; color: white; font-weight: bold; border: 2px solid #ffd700;">
<option value="North America">North America</option>
<option value="Europe">Europe</option>
<option value="Asia">Asia</option>
<option value="South America">South America</option>
<option value="Africa">Africa</option>
<option value="Oceania">Oceania</option>
</select>
</div>
<div class="checkbox-group">
<input type="checkbox" id="dailyNotifications">
<label for="dailyNotifications">Daily Reminder Notification</label>
</div>
<div class="form-group">
<label for="notificationTime">Notification Time:</label>
<input type="time" id="notificationTime" value="09:00">
<small style="color: #888; font-size: 12px;">Set your preferred time for daily reminders (default:
9:00 AM)</small>
</div>
<div class="privacy-notice">
<div class="checkbox-group">
<input type="checkbox" id="privacyAccepted">
<label for="privacyAccepted">I understand that my birthdate and location stay on my device and
are only used to personalize the visuals and stats.</label>
</div>
</div>
<button class="btn btn-primary" id="savePersonalBtn">
Save Personal Info
</button>
</div>
<!-- Blocking Schedules Section -->
<div class="section">
<h2 class="section-title">
🚫 Blocking Schedules
</h2>
<!-- Create New Schedule Button -->
<div style="text-align: center; margin-bottom: 20px;">
<button class="btn btn-primary" id="showScheduleFormBtn">
➕ Create New Schedule
</button>
</div>
<!-- New Schedule Form (Hidden by default) -->
<div class="schedule-form hidden" id="scheduleForm">
<h4>Create New Schedule</h4>
<div class="form-group">
<label class="form-label" for="scheduleName">Schedule Name:</label>
<input type="text" id="scheduleName" class="form-input" placeholder="e.g., Work Hours">
</div>
<div class="form-row">
<div class="form-group">
<label class="form-label" for="startTime">Start Time:</label>
<input type="time" id="startTime" class="form-input" value="09:00">
</div>
<div class="form-group">
<label class="form-label" for="endTime">End Time:</label>
<input type="time" id="endTime" class="form-input" value="17:00">
</div>
</div>
<div class="form-group">
<label class="form-label">Days of Week:</label>
<div style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px;">
<div class="checkbox-group">
<input type="checkbox" id="day0" value="0">
<label for="day0">Sunday</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="day1" value="1">
<label for="day1">Monday</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="day2" value="2">
<label for="day2">Tuesday</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="day3" value="3">
<label for="day3">Wednesday</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="day4" value="4">
<label for="day4">Thursday</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="day5" value="5">
<label for="day5">Friday</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="day6" value="6">
<label for="day6">Saturday</label>
</div>
</div>
</div>
<div class="form-group">
<label class="form-label">🚫 Websites to Block:</label>
<div class="website-input-section">
<div id="siteInputs">
<!-- Site inputs will be added dynamically -->
</div>
<div class="quick-add-section">
<p style="margin: 15px 0 10px 0; font-weight: 600; color: #ffd700;">⚡ Quick Add Popular
Sites:</p>
<div class="quick-add-buttons">
<button type="button" class="quick-add-btn"
data-site="facebook.com">Facebook</button>
<button type="button" class="quick-add-btn"
data-site="instagram.com">Instagram</button>
<button type="button" class="quick-add-btn" data-site="twitter.com">Twitter</button>
<button type="button" class="quick-add-btn" data-site="reddit.com">Reddit</button>
<button type="button" class="quick-add-btn" data-site="youtube.com">YouTube</button>
<button type="button" class="quick-add-btn" data-site="tiktok.com">TikTok</button>
<button type="button" class="quick-add-btn" data-site="netflix.com">Netflix</button>
<button type="button" class="quick-add-btn" data-site="twitch.tv">Twitch</button>
</div>
</div>
<div class="site-tips">
<p><strong>💡 How website blocking works:</strong></p>
<ul>
<li>✅ Just type domain names (e.g., "facebook.com")</li>
<li>✅ Press Enter to add quickly</li>
<li>✅ Automatically blocks subdomains (www.facebook.com, m.facebook.com)</li>
<li>✅ Click quick-add buttons for popular distracting sites</li>
</ul>
</div>
</div>
</div>
<button class="btn btn-primary" id="createScheduleBtn">
Create Schedule
</button>
<button class="btn btn-secondary" id="cancelEditBtn" style="display: none;">
Cancel Edit
</button>
</div>
<!-- Existing Schedules -->
<div id="schedulesList">
<!-- Schedules will be loaded here -->
</div>
</div>
<!-- YouTube Settings Section -->
<div class="section">
<h2 class="section-title">
📺 YouTube Settings
</h2>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;">
<div>
<h4 style="color: #ffd700; margin-bottom: 15px;">Content Hiding</h4>
<div class="checkbox-group">
<input type="checkbox" id="hideHome">
<label for="hideHome">Hide Home Page</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="hideShorts">
<label for="hideShorts">Hide Shorts</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="hideComments">
<label for="hideComments">Hide Comments</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="hideRecommended">
<label for="hideRecommended">Hide Recommended Videos</label>
</div>
</div>
<div>
<h4 style="color: #ffd700; margin-bottom: 15px;">Navigation</h4>
<div class="checkbox-group">
<input type="checkbox" id="hideSubscriptions">
<label for="hideSubscriptions">Hide Subscriptions</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="hideExplore">
<label for="hideExplore">Hide Explore</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="hideTrends">
<label for="hideTrends">Hide Trends</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="hideTopBar">
<label for="hideTopBar">Hide Top Bar</label>
</div>
</div>
<div>
<h4 style="color: #ffd700; margin-bottom: 15px;">Video Experience</h4>
<div class="checkbox-group">
<input type="checkbox" id="disableEndCards">
<label for="disableEndCards">Disable End Cards</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="disableAutoplay">
<label for="disableAutoplay">Disable Autoplay</label>
</div>
<div class="checkbox-group">
<input type="checkbox" id="blackAndWhite">
<label for="blackAndWhite">Black & White Mode</label>
</div>
</div>
</div>
<button class="btn btn-primary" id="saveYouTubeBtn">
Save YouTube Settings
</button>
</div>
<!-- Strict Mode Section -->
<div class="section">
<h2 class="section-title">
🔒 Strict Mode
</h2>
<div class="checkbox-group">
<input type="checkbox" id="strictMode">
<label for="strictMode">Enable Strict Mode (Requires PIN to disable schedules. Note: Extension
deletion protection is limited by browser policies)</label>
</div>
<div class="form-group" id="pinGroup" style="display: none;">
<label class="form-label" for="strictPin">Set PIN (4 digits):</label>
<input type="password" id="strictPin" class="form-input" maxlength="4" placeholder="0000">
</div>
<button class="btn btn-primary" id="saveStrictBtn">
Save Strict Mode
</button>
<button class="btn btn-secondary" id="changePinBtn" style="display: none; margin-left: 10px;">
🔑 Change PIN
</button>
</div>
</div>
<div class="watermark">
<a href="https://github.com/amazingkeymaster" target="_blank">
Made with ❤️ by amazingkeymaster
</a>
</div>
</div>
<div id="toast" class="toast"></div>
<script src="utils.js"></script>
<script src="options.js"></script>
</body>
</html>