forked from ThomazPom/Moz-Ext-Ignore-X-Frame-Options
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
386 lines (334 loc) · 8.49 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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<style type="text/css">
body
{
width:345px;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
overflow-x: hidden;
background: url("bg.jpg");
background-size: cover;
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
body, html {
height: 100%;
}
#disable_webext{
display:none;
}
#disable_webext:checked+label>span{
border: solid crimson 3px;
background-color: red;
}
#disable_webext+label .text::before{
content:'enabled';
}
#disable_webext:checked+label .text::before{
content:'disabled';
}
#disable_webext+label>span{
cursor: pointer;
background-color: #0ebf0e;
border-radius: 50px;
color: white;
padding: 1px 1px 1px 1px;
border: solid green 3px;
text-align:center;
display:inline-block;
width:100px;
}
#disable_webext+label>span .bawl{
background-color:white;
height: 20px;
width: 20px;
display:inline-block;
float:right;
border-radius:100%;
}
#disable_webext:checked+label>span .bawl{
float:left;
}
body {
color: #fff;
margin: 0 auto;
font: 1em/1.3em Montserrat, Helvetica, sans-serif;
}
.clearfix {
clear: both;
}
.container {
padding-top: 20px;
height: 100%;
width: 100%;
text-align: center;
background-color: #ddd;
}
h1 {
margin: 40px 0;
font-size: 40px;
line-height: 40px;
font-weight: bold;
text-shadow: 0px 1px 1px #888;
}
a {
text-decoration: none;
color: #fff;
margin: 0 10px;
}
.btn {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
position: relative;
display: inline-block;
overflow: hidden;
height: 53px;
border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
line-height: 30px;
font-size: 16px;
font-weight: bold;
text-shadow: 0px 1px 1px #888;
}
.btn span.icon, .btn span.title {
display: block;
position: relative;
line-height: 50px;
padding: 0 30px;
border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
}
.btn span.left {
float: left;
border-radius: 6px 0 0 6px;
-moz-border-radius: 6px 0 0 6px;
-webkit-border-radius: 6px 0 0 6px;
width: 40px;
}
.btn span.right {
float: right;
border-radius: 0 6px 6px 0;
-moz-border-radius: 0 6px 6px 0;
-webkit-border-radius: 0 6px 6px 0;
width: 40px;
}
.btn span.icon {
font-size: 23px;
background-color: #00967f;
-webkit-box-shadow: 0 3px 0 0 #007261;
box-shadow: 0 3px 0 0 #007261;
text-shadow: 0px 1px 1px #888;
}
.btn span.title {
width: 150px;
-webkit-box-shadow: 0 3px 0 0 #00ae94;
box-shadow: 0 3px 0 0 #00ae94;
background-color: #00cdae;
}
.btn span.arrow-left, .btn span.arrow-right {
position: absolute;
width: 0;
height: 0;
border-top: 25px solid transparent;
border-bottom: 25px solid transparent;
-webkit-transition: all .15s;
-transition: all .15s;
-webkit-transition-property: left, right;
transition-property: left, right;
}
.btn.left span.arrow-left {
right: 0;
-webkit-box-shadow: 10px 0 0 0 #00cdae, 10px 3px 0 0 #00ae94;
box-shadow: 10px 0 0 0 #00cdae, 10px 3px 0 0 #00ae94;
border-right: 10px solid #00cdae;
}
.btn.right span.arrow-left {
right: 0;
-webkit-box-shadow: 10px 0 0 0 #00967f, 10px 3px 0 0 #007261;
box-shadow: 10px 0 0 0 #00967f, 10px 3px 0 0 #007261;
border-right: 10px solid #00967f;
}
.btn.left span.arrow-right {
left: 0;
-webkit-box-shadow: -10px 0 0 0 #00967f, -10px 3px 0 0 #007261;
box-shadow: -10px 0 0 0 #00967f, -10px 3px 0 0 #007261;
border-left: 10px solid #00967f;
}
.btn.right span.arrow-right {
left: 0;
-webkit-box-shadow: -10px 0 0 0 #00cdae, -10px 3px 0 0 #00ae94;
box-shadow: -10px 0 0 0 #00cdae, -10px 3px 0 0 #00ae94;
border-left: 10px solid #00cdae;
}
.btn span.slant-left, .btn span.slant-right {
position: absolute;
width: 0;
height: 0;
border-top: 0 solid transparent;
border-bottom: 50px solid transparent;
-webkit-transition: all .15s;
-transition: all .15s;
-webkit-transition-property: left, right;
transition-property: left, right;
}
.btn.left span.slant-right {
left: 0;
-webkit-box-shadow: -10px 0 0 0 #00967f, -10px 3px 0 0 #007261;
box-shadow: -10px 0 0 0 #00967f, -10px 3px 0 0 #007261;
border-left: 10px solid #00967f;
}
.btn.right span.slant-right {
left: 0;
-webkit-box-shadow: -10px 0 0 0 #00cdae, -10px 3px 0 0 #00ae94;
box-shadow: -10px 0 0 0 #00cdae, -10px 3px 0 0 #00ae94;
border-left: 10px solid #00cdae;
}
.btn.left span.slant-left {
right: 0;
-webkit-box-shadow: 10px 0 0 0 #00cdae, 10px 3px 0 0 #00ae94;
box-shadow: 10px 0 0 0 #00cdae, 10px 3px 0 0 #00ae94;
border-right: 10px solid #00cdae;
}
.btn.right span.slant-left {
right: 0;
-webkit-box-shadow: 10px 0 0 0 #00967f, 10px 3px 0 0 #007261;
box-shadow: 10px 0 0 0 #00967f, 10px 3px 0 0 #007261;
border-right: 10px solid #00967f;
}
.btn:active, .btn.active {
height: 51px;
}
.btn:hover {}
.btn:hover span.arrow-left {
right: 10px;
}
.btn:hover span.arrow-right {
left: 10px;
}
.btn:hover span.slant-left {
right: 10px;
}
.btn:hover span.slant-right {
left: 10px;
}
.btn-small {
height: 30px;
font-size: 12px;
line-height: 10px;
}
a.btn-small span.btn {
height: 30px;
}
.label
{
text-shadow: 0px 0px 6px black;
background: rgba(0,0,0,.1);
margin-left: auto;
margin-right: auto;
margin-top:10px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
display: table;
padding: 10px 20px 0px 20px;
}
.label-after
{
display: block;
cursor: pointer;
font-size: 14px;
padding: 0px 20px 0px 20px;
text-align: center;
margin-top: 0px;
margin-left: 5%;
margin-right: 5%;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
.label-standalone
{
border-radius: 5px;
padding: 10px 20px 10px 20px;
}
.listextarea, .listextarea_fancestor
{
width: 89%;
margin-left: 5%;
margin-right: 5%;
display: block;
resize: vertical;
word-wrap: normal ;
white-space: pre;
height: 100px
}
</style>
<br>
<div class="content">
<a href="https://github.com/ThomazPom/Moz-Ext-Ignore-X-Frame-Options" class="btn left">
<span style="color:orange" class="left icon">< /></span>
<span class="right title"><span class="arrow-right"></span>Sources & Updates</span>
</a>
</div>
<div class="content">
<a href="https://www.paypal.me/ThomazPom" class="btn right">
<span class="left title"><span class="arrow-left"></span>Donate</span>
<span class="right icon">🧡</span>
</a>
</div>
<div class="content">
<a href="https://addons.mozilla.org/fr/firefox/addon/ignore-x-frame-options-header/" class="btn left">
<span class="right title"><span class="arrow-right"></span>Rate & About</span>
<span class="left icon">⭐</span>
</a>
</div>
<div class="content">
<span class="label">Websites can frame anything :
</span>
<p id="warning" style="background-color: red"></p>
<textarea class="listextarea"></textarea>
<a class="label label-after"><span id="reset">Reset default config</span></span>
<a class="label label-standalone" href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns">>Match patterns reference<<br/></a>
<div class="label label-standalone">
<input id="disable_webext" type="checkbox" />
<label for="disable_webext">Ignore X Frame is <span dataoncheck="blue"><span class="bawl"></span><span class='text'> </span></span>
</div>
</div>
<script type="text/javascript" src="popup.js"></script>
</script>
<br>
</body>
</html>