forked from tjhrulz/WebNowPlaying-BrowserExtension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Options.html
188 lines (161 loc) · 4.5 KB
/
Options.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
<!DOCTYPE html>
<html>
<head>
<title>WebNowPlaying Companion Extension Options</title>
<style>
html {
height: 100%;
min-width: 550px;
}
body {
padding: 0;
margin: 0;
font-family: 'Segoe UI';
background: linear-gradient(to top left, rgb(12, 182, 196), rgb(29, 53, 143));
background-attachment: fixed;
overflow-x: hidden;
}
#mainContent {
padding-left: 7.5%;
padding-right: 7.5%;
color: rgba(255, 255, 255, 0.75);
font-weight: 400;
}
label {
display: block;
}
.suboptions {
padding-left: 25px;
}
.disabled {
color: rgba(255, 255, 255, 0.5);
}
footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 1rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.75);
background-color: rgba(0, 0, 0, .25);
padding-left: 7.5%;
padding-right: 7.5%;
}
footer a:link {
/* Applies to all unvisited links */
text-decoration: none;
color: rgba(255, 255, 255, 0.75);
}
footer a:visited {
/* Applies to all visited links */
text-decoration: none;
color: rgba(255, 255, 255, 0.75);
}
footer a:hover {
/* Applies to links under the pointer */
text-decoration: underline;
color: rgba(255, 255, 255, 1);
}
footer a:active {
/* Applies to activated links */
text-decoration: underline;
color: rgba(255, 255, 255, 1);
}
footer div.left {
float: left;
}
footer div.right {
float: right;
}
h1 {
margin-left: -5%;
color: rgba(255, 255, 255, 1);
line-height: 1.5rem;
font-weight: 400;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}
p {
color: rgba(255, 255, 255, 1);
line-height: 1.5rem;
font-size: 1.5rem;
font-weight: 300;
margin-top: 1.25rem;
margin-bottom: 0.5rem;
}
select {
border: none;
color: rgba(255, 255, 255, 1);
background-color: rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.15);
}
select option {
color: rgba(255, 255, 255, 1);
background: rgba(81, 106, 171, 1);
}
textarea {
border: none;
color: rgba(255, 255, 255, 1);
background-color: rgba(255, 255, 255, 0.15);
}
@media screen and (max-height: 450px) {
footer {
position: unset;
width: 100%;
display: block;
padding-right: 0;
}
footer div.left,
footer div.right {
float: none;
clear: both;
width: fit-content;
}
}
</style>
</head>
<body>
<div id="mainContent">
<h1>WebNowPlaying Options</h1>
<p>Generic script settings</p>
<div id="genericOptions" class="suboptions">
<label>
<input type="checkbox" id="generic" /> Attempt to support unknown websites using the generic script
</label>
<div class="suboptions">
<label>
<input type="checkbox" id="useGenericList" /> Only hostnames in the
<select id="listType">
<option value="whitelist">whitelist</option>
<option value="blacklist">blacklist</option>
</select>
(Seperate with newline)
</label>
<textarea rows="4" cols="52" id="genericList">streamable.com/*</textarea>
</div>
</div>
<p style="float:left;">Websocket connection settings</p>
<p style="font-size: 1rem;font-weight: 300;"> (Not yet implemented)</p>
<div id="websocketOptions" class="disabled suboptions">
<label>
<input type="checkbox" id="WNP" disabled="disabled" checked="checked" /> Send detected music info to the WebNowPlaying Rainmeter plugin
</label>
<label>
<input type="checkbox" id="UNP" disabled="disabled" /> Send detected music info to the UnNowPlaying Rainmeter plugin (Unreleased)
</label>
<label>
<input type="checkbox" id="Twitch" disabled="disabled" /> Send detected music info to the WebNowPlaying Twitch extension (Unreleased)
</label>
</div>
<h3 style="margin-top: 75px;">Note: Please reload affected pages in order for changes to take affect</h3>
</div>
<footer>
<div class="left">Made by tjhrulz</div>
<div class="right">
<a href="https://www.patreon.com/tjhrulz">Feel free to support the extension and other plugins I make </a>
</div>
</footer>
<script src="Options.js"></script>
</body>
</html>