-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
261 lines (235 loc) · 9.61 KB
/
Copy pathoptions.html
File metadata and controls
261 lines (235 loc) · 9.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>S.T.I.T.C.H Configuration</title>
<link rel="stylesheet" href="stitch.css">
<style>
body {
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 40px 20px;
}
.options-page {
width: 620px;
max-width: 100%;
}
.options-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 32px;
}
.options-header img {
width: 36px;
height: 36px;
filter: drop-shadow(0 0 8px var(--neon-cyan));
}
.options-header h1 {
font-family: 'Outfit', sans-serif;
font-size: 22px;
font-weight: 700;
background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: 2px;
}
.options-header .badge {
font-size: 9px;
}
.section {
margin-bottom: 24px;
}
.section-title {
font-size: 9px;
color: var(--neon-cyan);
letter-spacing: 2px;
margin-bottom: 12px;
display: block;
border-bottom: 1px dashed var(--glass-border);
padding-bottom: 8px;
font-family: 'Outfit', sans-serif;
}
.option-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.option-row:last-child {
border-bottom: none;
}
.option-label {
color: var(--text-primary);
font-size: 13px;
}
.option-desc {
color: var(--text-muted);
font-size: 10px;
margin-top: 2px;
}
select {
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--glass-border);
color: var(--text-primary);
padding: 7px 12px;
border-radius: var(--radius-sm);
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
outline: none;
transition: var(--transition);
}
select:focus {
border-color: var(--neon-cyan);
}
.save-btn {
margin-top: 24px;
}
#status {
text-align: center;
margin-top: 10px;
min-height: 18px;
font-size: 11px;
color: var(--success);
font-family: 'JetBrains Mono', monospace;
}
</style>
</head>
<body class="theme-dark">
<!-- Ambient Glows -->
<div class="bg-glow-1"></div>
<div class="bg-glow-2"></div>
<div class="options-page">
<!-- Header -->
<div class="options-header">
<img src="pip.webp" alt="S.T.I.T.C.H">
<div>
<h1>S.T.I.T.C.H</h1>
<span class="badge">CONFIGURATION PANEL</span>
</div>
</div>
<!-- ── PLAYBACK PREFERENCES ── -->
<div class="section">
<span class="section-title">PLAYBACK PREFERENCES</span>
<div class="config-card">
<div class="option-row">
<div>
<div class="option-label">Default PiP Size</div>
<div class="option-desc">Size of the PiP window on launch</div>
</div>
<select id="defaultSize">
<option value="small">Small (300px)</option>
<option value="medium">Medium (380px)</option>
<option value="large">Large (500px)</option>
</select>
</div>
<div class="option-row">
<div>
<div class="option-label">Auto-PiP on Tab Switch</div>
<div class="option-desc">Smart detection — skips ads and short clips</div>
</div>
<label class="toggle-switch">
<input type="checkbox" id="autoPip">
<span class="slider"></span>
</label>
</div>
<div class="option-row">
<div>
<div class="option-label">Default Theme</div>
<div class="option-desc">Dark / Light / Auto (follows system)</div>
</div>
<select id="defaultTheme">
<option value="dark">Dark</option>
<option value="light">Light</option>
<option value="auto">Auto (System)</option>
</select>
</div>
</div>
</div>
<!-- ── SITE ALLOW LIST ── -->
<div class="section">
<span class="section-title">SITE BLOCKLIST</span>
<div class="config-card">
<div style="font-size:11px; color:var(--text-muted); margin-bottom:12px;">
Sites added here will have the extension <strong style="color:var(--danger)">disabled</strong>.
Press Enter or click Add to save.
</div>
<div class="site-list" id="siteList"></div>
<div class="site-add-row">
<input type="text" id="siteInput" class="stitch-input" placeholder="e.g. example.com">
<button id="addSiteBtn" class="add-btn">ADD</button>
</div>
</div>
</div>
<!-- ── SUBTITLE CUSTOMIZATION ── -->
<div class="section">
<span class="section-title">SUBTITLE OVERLAY SETTINGS</span>
<div class="config-card">
<div class="option-row">
<div>
<div class="option-label">Font Size</div>
<div class="option-desc">Relative size of subtitles in PiP</div>
</div>
<select id="subtitleSize">
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
<option value="xlarge">Extra Large</option>
</select>
</div>
<div class="option-row">
<div>
<div class="option-label">Text Color</div>
<div class="option-desc">Color of the subtitle text</div>
</div>
<select id="subtitleColor">
<option value="#ffffff">White</option>
<option value="#ffff00">Yellow</option>
<option value="#00ffff">Cyan</option>
<option value="#ff00ff">Magenta</option>
<option value="#00ff00">Green</option>
</select>
</div>
</div>
</div>
<!-- ── KEYBOARD SHORTCUTS ── -->
<div class="section">
<span class="section-title">KEYBOARD SHORTCUTS (READ ONLY)</span>
<div class="config-card">
<div style="font-size:10px; color:var(--text-muted); margin-bottom:12px;">
To change shortcuts, visit <strong
style="color:var(--neon-cyan)">chrome://extensions/shortcuts</strong>
</div>
<div id="shortcutList">
<div class="shortcut-item"><span>Toggle PiP</span><span class="key">Alt + P</span></div>
<div class="shortcut-item"><span>Close PiP</span><span class="key">Alt + X</span></div>
<div class="shortcut-item"><span>Play / Pause</span><span class="key">Space</span></div>
<div class="shortcut-item"><span>Mute / Unmute</span><span class="key">M</span></div>
<div class="shortcut-item"><span>Seek Backward 5s</span><span class="key">← </span></div>
<div class="shortcut-item"><span>Seek Forward 5s</span><span class="key">→</span></div>
<div class="shortcut-item"><span>Volume Up</span><span class="key">Alt + ↑</span></div>
<div class="shortcut-item"><span>Volume Down</span><span class="key">Alt + ↓</span></div>
<div class="shortcut-item"><span>Speed Up</span><span class="key">Shift + ></span></div>
<div class="shortcut-item"><span>Speed Down</span><span class="key">Shift + <</span></div>
<div class="shortcut-item"><span>Resize PiP</span><span class="key">Alt + = / -</span></div>
<div class="shortcut-item"><span>Move PiP</span><span class="key">Alt + Arrows</span></div>
<div class="shortcut-item"><span>Help Tooltip</span><span class="key">H</span></div>
</div>
</div>
</div>
<!-- Save Button -->
<button id="saveBtn" class="hero-btn save-btn">
<span class="btn-text">SAVE SETTINGS</span>
<span class="btn-glow"></span>
</button>
<div id="status"></div>
</div>
<script src="content/config.js"></script>
<script src="options.js"></script>
</body>
</html>