blob: d16cb88921c9a75b0ed04adcafefdcf45f5dc867 (
plain)
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../theme.css">
<link rel="stylesheet" href="popup.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<div class="container">
<header class="app-header">
<div id="header-container">
<div class="logo-container">
<img src="../assets/images/logo.png" alt="ZenInternet Logo" class="logo-img">
<h1 class="app-title">Zen Internet</h1>
</div>
<div class="miniheader">
<div id="addon-version" class="addon-version"></div>
<div class="author">by <a href="https://www.sameerasw.com/" target="_blank">@sameerasw</a></div>
</div>
</div>
<div class="header-buttons">
<button id="how-to-use" class="icon-button" title="How to use?">🤔</button>
<button id="whats-new" class="whats-new-button" title="What's New">✨</button>
</div>
</header>
<main class="app-content">
<div class="features-container">
<div class="toggle-container">
<label class="toggle-switch">
<input type="checkbox" id="enable-styling">
<span class="slider round"></span>
</label>
<span class="toggle-label">Global Styling</span>
</div>
<div class="toggle-container">
<label class="toggle-switch">
<input type="checkbox" id="whitelist-style-mode">
<span class="slider round"></span>
</label>
<span id="whitelist-style-mode-label" class="toggle-label">Blacklist Mode</span>
</div>
<!-- Moved reload button here -->
<button id="reload" class="action-button secondary">
Reload to apply <i class="fas fa-sync-alt"></i>
</button>
</div>
<!-- Current Site Features Section -->
<div id="current-site-features" class="features-container">
<button class="collapsible-button" id="toggle-features">
<span id="current-site-label">
<span id="site-domain" class="site-domain"></span>
<span>Features</span>
</span>
<i class="fas fa-chevron-down"></i>
</button>
<div class="toggle-container">
<label class="toggle-switch">
<input type="checkbox" id="skip-theming">
<span class="slider round"></span>
</label>
<span id="site-style-toggle-label" class="toggle-label">Skip Styling for this Site</span>
</div>
<div id="current-site-toggles" class="features-list collapsed"></div>
<div class="actions" id="current-site-actions">
<!-- Reload button was here, now moved above -->
</div>
</div>
<div class="actions">
<button id="refetch-css" class="action-button primary">
<i class="fas fa-sync-alt"></i> Refetch latest styles
</button>
</div>
<div class="toggle-container">
<label class="toggle-switch">
<input type="checkbox" id="auto-update">
<span class="slider round"></span>
</label>
<span class="toggle-label">Auto Update Styles</span>
</div>
<div id="last-fetched-time" class="last-fetched-time"></div>
<div class="features-container">
<button class="collapsible-button" id="toggle-forcing">
<span>Force Styling Settings</span>
<i class="fas fa-chevron-down"></i>
</button>
<div id="forcing-content" class="forcing-container collapsed">
<div class="toggle-container">
<label class="toggle-switch">
<input type="checkbox" id="force-styling">
<span class="slider round"></span>
</label>
<span class="toggle-label">Force Styling</span>
</div>
<div class="toggle-container">
<label class="toggle-switch">
<input type="checkbox" id="whitelist-mode">
<span class="slider round"></span>
</label>
<span id="whitelist-mode-label" class="toggle-label">Blacklist Mode</span>
</div>
<div class="toggle-container">
<label class="toggle-switch">
<input type="checkbox" id="skip-force-theming">
<span class="slider round"></span>
</label>
<span id="site-toggle-label" class="toggle-label">Skip Forcing for this Site</span>
</div>
<div class="toggle-container">
<label class="toggle-switch">
<input type="checkbox" id="fallback-background">
<span class="slider round"></span>
</label>
<span class="toggle-label">Fallback Background</span>
</div>
</div>
</div>
<div class="actions">
<button id="view-data" class="action-button secondary">
<i class="fa-solid fa-gear"></i>
Advanced Settings
</button>
</div>
</main>
<footer class="app-footer">
<a href="https://sameerasw.github.io/my-internet/" class="footer-link" target="_blank">
<i class="fas fa-book"></i> Styles
</a>
<div class="footer-divider"></div>
<a href="https://github.com/sameerasw/my-internet/issues/new/choose" class="footer-link" target="_blank">
<i class="fa-brands fa-github"></i> Bug?
</a>
</footer>
</div>
<script src="popup.js"></script>
</body>
</html>
|