-
Notifications
You must be signed in to change notification settings - Fork 31
/
Popup.html
293 lines (257 loc) · 8.21 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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RR Adblocker</title>
<style>
/* Switch css start */
* {
--switch-height: 20px;
--switch-padding: 8px;
--switch-width: calc((var(--switch-height) * 2) - var(--switch-padding));
--slider-height: calc(var(--switch-height) - var(--switch-padding));
--slider-on: calc(var(--switch-height) - var(--switch-padding));
}
* {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
body {
width: 230px !important;
}
.switch {
position: relative;
display: inline-block;
width: var(--switch-width);
height: var(--switch-height);
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
content: "";
position: absolute;
height: var(--slider-height);
width: var(--slider-height);
left: calc(var(--switch-padding) / 2);
bottom: calc(var(--switch-padding) / 2);
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 {
transform: translateX(var(--slider-on));
}
.slider.round {
border-radius: var(--slider-height);
}
.slider.round:before {
border-radius: 50%;
}
.pause {
opacity: 0.5;
}
.hideNDisable {
display: none;
}
.tick {
width: 25px;
height: 20px;
}
.cross {
width: 25px;
height: 22px;
}
/* Switch css end */
#showDomain {
border-radius: 10px;
width: 230px !important;
height: max-content;
padding: 3px;
text-align: center;
margin-top: 10px !important;
margin-bottom: 10px !important;
}
#Openoptions {
float: right;
width: 15px !important;
height: 15px !important;
cursor: pointer;
padding-right: 7px !important;
margin-top: 8px !important;
}
/* Accordian Start */
.flexCenter {
display: flex;
justify-content: center;
align-items: center;
}
#accordion {
cursor: pointer;
border: none;
outline: none;
background-color: white;
transition: 2s;
}
#panel {
display: none;
}
#blockedDomains {
background-color: aquamarine;
border-radius: 10px;
padding: 5px;
font-size: 13px;
table-layout: fixed;
width: 220px;
height: auto;
}
td {
border-bottom: 1px solid #BCBCBC;
word-wrap: break-word;
}
.noScroll {
width: 220px;
height: 70px !important;
overflow-x: hidden;
overflow-y: scroll;
}
.noScroll::-webkit-scrollbar {
display: none;
}
/* Accordian End */
/* Tooltip start */
.tooltip {
position: relative;
cursor: pointer;
display: inline-block;
}
.tooltip::before,
.tooltip::after {
position: absolute;
opacity: 0;
transition: all 0.3s;
z-index: -1;
}
.tooltip::before {
content: "";
border: 10px solid transparent;
border-bottom-color: #000;
top: 10px;
left: 10px;
}
.tooltip::after {
content: attr(data-tooltip);
display: block;
padding: 7px 13px;
background: #000;
border-radius: 3px;
font-size: 12px;
font-weight: 600;
color: #fff;
top: 30px;
left: 0;
white-space: nowrap;
}
.tooltip:hover::before {
top: 16px;
opacity: 1;
z-index: 100;
}
.tooltip:hover::after {
top: 36px;
opacity: 1;
z-index: 100;
}
.info {
width: 17px;
height: 17px;
}
/* Tooltip end */
</style>
</head>
<body>
<!-- "Intro" -->
<div>
<div id="Openoptions" class="flexCenter" style="flex-direction: column;float: right;"><img
src="./settings.png"><span style="font-size: 11px;">Settings</span></div>
<a href="#" class="flexCenter" style="text-decoration:none;color: black;cursor: default;">
<img src="./RR_logo.png" alt="Logo" style="width: 50px;height: 70px;"><span>Adblocker!</span>
</a>
</div>
<br>
<!-- All Shields: ON/OFF -->
<div class="flexCenter">
<label class="switch">
<input type="checkbox" id="site_link" checked>
<span class="slider round"></span>
</label>
</div>
<br>
<div class="flexCenter" style="flex-direction:column;">
<button id="accordion">
<span id="showStatistics" style="font-size: 205% !important;color: blue;">3</span>
<span style="font-size: 115% !important;color: blue;">items blocked</span>
</button>
<div id="panel" class="noScroll">
<div class="noScroll" class="flexCenter" style="flex-direction: column;">
<table id="blockedDomains"></table>
</div>
</div>
<div id="showDomain" style="font-size: 125% !important;"><span style="color: #ccc;">Domain:</span>
</div>
</div>
<!-- Individual Shields : ON/OFF -->
<div id="individualShields">
<!-- 1st: Connection Upgrade to HTTPS -->
<div class="flexCenter">
<span style="font-size: 115% !important;">Connection Upgrade to HTTPS </span>
<img src="./icons/tick.jpg" class="tick" alt="on">
<img src="./icons/cross.jpg" class="cross hideNDisable" alt="off">
</div>
<br>
<!-- 2nd: Block ads and Trackers -->
<div class="flexCenter">
<span style="font-size: 115% !important;">Block Trackers and Adverts </span>
<img src="./icons/tick.jpg" class="tick" alt="on">
<img src="./icons/cross.jpg" class="cross hideNDisable" alt="off">
</div>
<br>
<!-- 3rd: Malware protection -->
<div class="flexCenter">
<span style="font-size: 115% !important;">Malware Protection[BETA] </span>
<img src="./icons/tick.jpg" class="tick" alt="on">
<img src="./icons/cross.jpg" class="cross hideNDisable" alt="off">
</div>
<div class="flexCenter">
<p id="pgLoadSpeed" class="tooltip" data-tooltip="Optimized load speed"
style="text-align: center;color: #087034;font-weight:700;font-size: 15px;"></p>
</div>
</div>
<div>
<p style="text-align: center;">
You are protected against trackers and ads!
</p>
</div>
<script src="popup.js"></script>
</body>
</html>