-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
199 lines (175 loc) · 5.26 KB
/
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
<!doctype html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta content="utf-8" http-equiv="encoding" />
<script src="popup.js"></script>
<style>
div {
padding:2px;
}
body {
background-color:#FFF;
width:350px;
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 30px;
height: 16px;
margin: 2px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 14px;
width: 14px;
left: 1px;
bottom: 1px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(14px);
-ms-transform: translateX(14px);
transform: translateX(14px);
}
/* Rounded sliders */
.slider.round {
border-radius: 16px;
}
.slider.round:before {
border-radius: 50%;
}
h3 {
margin: 7px 0 3px 0;
}
button {
margin:0 0 10px 0;
padding: 2px;
}
</style>
</head>
<body>
<button id="disableButton">Toggle On/Off</button> <- Press this to turn ON or OFF.
<div id="newVersion"></div>
<h3>Dockable streaming chat link</h3>
<div id="dock"></div>
<h3>Single message overlay link</h3>
<div id="overlay"></div>
<div id="settings"></div>
<h3>Customize dockable streaming chat link</h3>
<label class="switch">
<input type="checkbox" data-param1="lightmode">
<span class="slider round"></span>
</label> Light mode
<br />
<label class="switch">
<input type="checkbox" data-param1="hidesource">
<span class="slider round"></span>
</label> Hide source icon
<br />
<label class="switch">
<input type="checkbox" data-param1="scale=2">
<span class="slider round"></span>
</label> Magnify view
<br />
<label class="switch">
<input type="checkbox" data-param1="notime">
<span class="slider round"></span>
</label> Hide timestamp
<br />
<label class="switch">
<input type="checkbox" data-param1="compact">
<span class="slider round"></span>
</label> Compact Mode (good for OBS overlaying)
<br />
<label class="switch">
<input type="checkbox" data-param1="showtime=20000">
<span class="slider round"></span>
</label> Hide overlay after 20s
<br />
<label class="switch">
<input type="checkbox" data-setting="discord">
<span class="slider round"></span>
</label> Capture Discord chat
<br />
<label class="switch">
<input type="checkbox" data-param1="limit=200">
<span class="slider round"></span>
</label> Increase messages history to 200
<br />
<label class="switch">
<input type="checkbox" data-param1="hideshadow">
<span class="slider round"></span>
</label> Remove the text background shadowing
<h3>Customize single message overlay link</h3>
<label class="switch">
<input type="checkbox" data-param2="showtime=20000">
<span class="slider round"></span>
</label> Hide overlay after 20s
<br />
<label class="switch">
<input type="checkbox" data-param2="showsource">
<span class="slider round"></span>
</label> Show source icon
<br />
<label class="switch">
<input type="checkbox" data-param2="center">
<span class="slider round"></span>
</label> Center overlay
<br />
<h3>General Settings / Features</h3>
<label class="switch">
<input type="checkbox" id="autohi" data-setting="autohi">
<span class="slider round"></span>
</label> Auto-reply to "<b>hi</b>" messages
<br />
<label class="switch">
<input type="checkbox" id="midi" data-setting="midi">
<span class="slider round"></span>
</label> Enable MIDI hotkeys
<br />
<label class="switch" title="Just text is captured; no HTML, so no BTTV emotes, etc.">
<input type="checkbox" id="firstsourceonly" data-setting="firstsourceonly">
<span class="slider round"></span>
</label> Filter out duplicate message echos
<br />
<label class="switch" title="Just text is captured; no HTML, so no BTTV emotes, etc.">
<input type="checkbox" id="textonlymode" data-setting="textonlymode">
<span class="slider round"></span>
</label> Strip HTML from messages
<br />
<label class="switch">
<input type="checkbox" id="joke" data-setting="joke">
<span class="slider round"></span>
</label> Tell joke on <b>!joke</b> message
<button class="button" data-action="tellajoke" style="cursor:pointer;"> Tell a random joke now</button>
</body>
</html>