168 lines
3.6 KiB
HTML
168 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<style>
|
|
:root {
|
|
color-scheme: light dark;
|
|
--bg: #ffffff;
|
|
--text: #1a1a1a;
|
|
--text-secondary: #555;
|
|
--text-muted: #777;
|
|
--border: #ccc;
|
|
--row-border: #eee;
|
|
--status-ok: #2a8f2a;
|
|
--status-error: #c0392b;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #202124;
|
|
--text: #e8eaed;
|
|
--text-secondary: #bdc1c6;
|
|
--text-muted: #9aa0a6;
|
|
--border: #5f6368;
|
|
--row-border: #3c4043;
|
|
--status-ok: #81c995;
|
|
--status-error: #f28b82;
|
|
}
|
|
}
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
width: 280px;
|
|
padding: 16px;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
h1 {
|
|
font-size: 15px;
|
|
margin: 0 0 12px;
|
|
color: var(--text);
|
|
}
|
|
label {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
color: var(--text-secondary);
|
|
}
|
|
select, input[type="text"] {
|
|
width: 100%;
|
|
padding: 6px 8px;
|
|
font-size: 13px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
margin-bottom: 10px;
|
|
box-sizing: border-box;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
#customUrlRow {
|
|
display: none;
|
|
}
|
|
.toggle-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-top: 1px solid var(--row-border);
|
|
}
|
|
.toggle-row:first-of-type {
|
|
border-top: none;
|
|
}
|
|
.toggle-row span {
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
.delay-row {
|
|
padding: 0 0 10px;
|
|
}
|
|
.delay-row-label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 4px;
|
|
}
|
|
.delay-row-label span:last-child {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
input[type="range"] {
|
|
width: 100%;
|
|
accent-color: #e5a00d;
|
|
}
|
|
input[type="range"]:disabled {
|
|
opacity: 0.4;
|
|
}
|
|
button.save {
|
|
width: 100%;
|
|
margin-top: 14px;
|
|
padding: 8px;
|
|
background: #e5a00d;
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: #1a1a1a;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
button.save:hover {
|
|
background: #cc8f0b;
|
|
}
|
|
#status {
|
|
font-size: 11px;
|
|
color: var(--status-ok);
|
|
text-align: center;
|
|
margin-top: 8px;
|
|
height: 14px;
|
|
}
|
|
#status.error {
|
|
color: var(--status-error);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Plex Auto Skip</h1>
|
|
|
|
<label for="urlPreset">Plex URL</label>
|
|
<select id="urlPreset">
|
|
<option value="default">app.plex.tv (default)</option>
|
|
<option value="custom">Custom URL</option>
|
|
</select>
|
|
<div id="customUrlRow">
|
|
<input type="text" id="customUrl" placeholder="e.g. 192.168.1.50:32400/web">
|
|
</div>
|
|
|
|
<div class="toggle-row">
|
|
<span>Skip Intro</span>
|
|
<input type="checkbox" id="skipIntro">
|
|
</div>
|
|
<div class="delay-row">
|
|
<div class="delay-row-label">
|
|
<span>Delay before clicking</span>
|
|
<span id="introDelayValue">0s</span>
|
|
</div>
|
|
<input type="range" id="introDelay" min="0" max="30" step="1" value="0">
|
|
</div>
|
|
|
|
<div class="toggle-row">
|
|
<span>Skip Credits</span>
|
|
<input type="checkbox" id="skipCredits">
|
|
</div>
|
|
<div class="delay-row">
|
|
<div class="delay-row-label">
|
|
<span>Delay before clicking</span>
|
|
<span id="creditsDelayValue">0s</span>
|
|
</div>
|
|
<input type="range" id="creditsDelay" min="0" max="30" step="1" value="0">
|
|
</div>
|
|
|
|
<button class="save" id="saveBtn">Save</button>
|
|
<div id="status"></div>
|
|
|
|
<script src="utils.js"></script>
|
|
<script src="popup.js"></script>
|
|
</body>
|
|
</html>
|