-
Notifications
You must be signed in to change notification settings - Fork 293
/
Copy pathindex.html
72 lines (64 loc) · 2.75 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chainflare Embed</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Description" content="Chainflare Embed" />
<meta name="Author" content="Made in one click" />
<meta name="Copyright" content="Unlicense" />
<meta name="Keywords" content="Chainflare, Embed, Unlicense" />
<meta name="Subject" content="Chainflare Embed" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Chainflare Embed">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="mobile-web-app-capable" content="yes">
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="400">
<meta name="format-detection" content="telephone=no">
<meta name="google" content="notranslate">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="cleartype" content="on">
<meta http-equiv="Content-Language" content="en">
<style>
html, body, iframe {
margin:0;
padding:0;
top:0;
left:0;
bottom:0;
right:0;
height:100%;
z-index:999999;
}
iframe {
overflow:hidden;
display:block;
width:100%;
border:none;
}
.background {
background-color: #44034f;
}
</style>
<script src="https://unpkg.com/@ungap/custom-elements-builtin"></script>
<script src="x-frame-bypass.js" type="module"></script>
</head>
<body>
<iframe is="x-frame-bypass" id="flex" name="flex" title="flex"></iframe>
<script>
// Extract URL parameter
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
var targetURL = urlParams.get('url');
// Set default URL
var finalURL = 'https://example.com';
if (targetURL) {
var urlWithoutProtocol = targetURL.replace(/^(https?:\/\/)/, '');
document.getElementById('flex').src = 'https://' + urlWithoutProtocol;
} else {
document.getElementById('flex').src = finalURL;
}
</script>
</body>
</html>