-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.html
80 lines (69 loc) · 2.66 KB
/
settings.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
font-size: 16px;
font-family: 'Source Sans Pro';
width: 300px;
background-color: #181818;
color: white
}
.settings-menu {
position: relative;
}
.kofi-icon {
position: absolute;
right: 10px;
cursor: pointer;
}
#current-url,
#current-title {
background-color: #f0f0f0;
color: #666;
cursor: default;
}
h1 {
text-align: center;
}
</style>
</head>
<div class="settings-menu">
<h1>
<img src="icon.png" alt="Icon" style="width: 48px; height: 48px; vertical-align: middle;">
Settings
</h1>
<div class="option">
<input type="checkbox" id="self-promotion" name="self-promotion" style="vertical-align: middle;">
<label for="self-promotion">Block Self Promotion</label>
</div>
<div class="option">
<input type="checkbox" id="debug-mode" name="debug-mode" style="vertical-align: middle;">
<label for="debug-mode">Debug Mode</label>
</div>
<div class="option" id="sponsor-string-container" style="display: block;">
<div>Debug mode allows you to set a custom string to match, to test whether your selector is correct. Currently only supports comments, and a reload is required. Work in progress. </div>
<label for="sponsor-string">Sponsor String (requires reload):</label>
<input type="text" id="sponsor-string" style="width:90%" placeholder="String to test for">
</div>
<br>
<button id="show-issue-form">Submit issue with current watchpage</button>
<div id="issue-form" style="display: none;">
<input type="text" id="current-title" style="width:90%" placeholder="Current video title">
<br>
<input type="text" id="current-url" style="width:90%" placeholder="Current video URL">
<br>
<textarea id="extra-notes" placeholder="Additional notes..."></textarea>
<br>
<div style="display: flex; align-items: center;">
<button id="submit-issue">Submit to GitHub</button>
<div style="font-size: 12px; margin-left: 8px">(Requires a GitHub account)</div>
</div>
</div>
<a href="https://ko-fi.com/magicjinn" target="_blank" class="kofi-icon">
<img src="https://ko-fi.com/favicon.ico" width="24" height="24">
</a>
<script src="settings.js"></script>
</div>