-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
options_popup.html
236 lines (207 loc) · 7.96 KB
/
options_popup.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Clickbait Remover for Youtube options popup</title>
<style>
body {
width: 450px;
margin: 0;
font-family: system-ui, sans-serif;
font-size: 75%;
}
.container {
margin: 0 1%;
}
.title {
text-align: left;
}
.optionsContainer {
width: 100%;
display: flex;
flex-flow: row wrap;
justify-content: space-around;
align-content: center;
align-items: baseline;
}
.optionsContainer div[class^="option-"] {
float: left;
display: flex;
align-items: center;
flex-direction: column;
}
div[class^="option-"]>p {
text-align: center;
}
.option-4 {
display: flex;
width: 25%;
}
input[type="radio"] {
cursor: pointer;
display: flex;
flex-wrap: wrap;
}
#banner {
width: 100%;
text-align: center;
background-color: #686868;
color: white;
padding: 2px 0;
}
#donatebutton {
position: relative;
float: right;
}
.link {
text-decoration: underline;
cursor: pointer;
}
#donate {
display: none;
width: 100%;
overflow-wrap: break-word;
box-sizing: border-box;
}
#donate > div {
display: inline;
float: left;
}
.donationOptions {
width: 60%;
}
.donationsList {
width: 40%;
}
.donationsList > ol {
padding-inline-start: 16px;
}
.donationsList > ol > li > * {
display: inline;
}
.green {
color: rgb(147, 255, 101);
}
@media (prefers-color-scheme: dark) {
body {
background-color: #313131;
color: #bfbfbf;
}
#banner {
background-color: #4e4e4e;
color: #b7b7b7;
}
}
@-moz-document url-prefix() {
@media screen and (max-width: 348px) {
body {
width: 100%;
}
#banner {
display: none;
}
.option-4 {
width: 50%;
}
.optionsContainer div[class^="option-"] {
flex-direction: row-reverse;
justify-content: left;
}
.title {
margin: 1% 0;
}
}
}
</style>
</head>
<body>
<div id="banner">Clickbait Remover for Youtube</div>
<div class="container">
<div id="settings">
<h3 class="title" data-localize="__MSG_whereToGrabTheThumbnailImage__">Where to grab the thumbnail image:
</h3>
<div class="optionsContainer">
<div class="option-4">
<p data-localize="__MSG_startOfTheVideo__">Start of the video</p>
<label for="preferred_thumbnail_file_hq1"></label>
<input type="radio" value="hq1" id="preferred_thumbnail_file_hq1" name="preferred_thumbnail_file" />
</div>
<div class="option-4">
<p data-localize="__MSG_middleOfTheVideo__">Middle of the video</p>
<label for="preferred_thumbnail_file_hq2"></label>
<input type="radio" value="hq2" id="preferred_thumbnail_file_hq2" name="preferred_thumbnail_file" />
</div>
<div class="option-4">
<p data-localize="__MSG_endOfTheVideo__">End of the video</p>
<label for="preferred_thumbnail_file_hq3"></label>
<input type="radio" value="hq3" id="preferred_thumbnail_file_hq3" name="preferred_thumbnail_file" />
</div>
<div class="option-4">
<p data-localize="__MSG_doNotModify__">Do not modify</p>
<label for="preferred_thumbnail_file_default"></label>
<input type="radio" value="hqdefault" id="preferred_thumbnail_file_default"
name="preferred_thumbnail_file" />
</div>
</div>
<h3 class="title" data-localize="__MSG_howToFormatTheVideoTitles__">How to format the video titles:</h3>
<div class="optionsContainer">
<div class="option-4">
<p data-localize="__MSG_lowercase__">lowercase</p>
<label for="video_title_format_lowercase"></label>
<input type="radio" value="lowercase" id="video_title_format_lowercase" name="video_title_format" />
</div>
<div class="option-4">
<p data-localize="__MSG_capitaliseSentence__">Capitalise sentence</p>
<label for="video_title_format_capitalize_first_letter"></label>
<input type="radio" value="capitalize_first_letter" id="video_title_format_capitalize_first_letter"
name="video_title_format" />
</div>
<div class="option-4">
<p data-localize="__MSG_capitaliseWords__">Capitalise Words</p>
<label for="video_title_format_capitalise_words"></label>
<input type="radio" value="capitalise_words" id="video_title_format_capitalise_words"
name="video_title_format" />
</div>
<div class="option-4">
<p data-localize="__MSG_doNotModify__">Do not modify</p>
<label for="video_title_format_default"></label>
<input type="radio" value="default" id="video_title_format_default" name="video_title_format" />
</div>
</div>
</div>
<div id="donate" style="display: none">
<h3 data-localize="__MSG_thanksForDonating__">Thanks that you are considering donating! :D</h3>
<div class="donationOptions">
<b>Paypal</b>
<div class="link" id="paypallink">paypal.me/pietervanheijningen</div>
<br />
<b>Bitcoin</b>
<div>36BYRkf1bFcdAEkxKicoFrEKiWM4Voi8Th</div>
<br />
<b>Ethereum (only ETH)</b>
<div>0xbe2cBF10Daf544b0C07D5aEBf3D39F563b28C276</div>
<br />
<b>Nano</b>
<div>nano_1ywgrzesdgygymw8qdspznio7wc98q8sgbcfd7tbpfwkwx1d4xmm8zkrx6i8</div>
<br />
</div>
<div class="donationsList">
<b>Top donations</b>
<ol>
<li><div class="green">$10.83</div><i> - Marinka Milic</i> </li>
<li><div class="green">$10.80</div><i> - Nolan Booth</i> </li>
<li><div class="green">$5.46</div><i> - Renaud Wilms</i> </li>
<li><div class="green">$5.32</div><i> - Gregory Peterson</i> </li>
<li><div class="green">$5.11</div><i> - Mitya A.</i> </li>
<li><div class="green">$4.94</div><i> - @limbuscode</i> </li>
<li><div class="green">$4.81</div><i> - Yang Wang</i> </li>
</ol>
</div>
</div>
<p id="donatebutton" class="link green" data-localize="__MSG_donate__">Donate!</p>
</div>
</body>
<script src="js/options_popup.js"></script>
</html>