This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
forked from PurePro4561/PurePro4561.github.io-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathABC.html
47 lines (45 loc) · 1.84 KB
/
ABC.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
<title>About Blank Cloaker</title>
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="style.css">
<head>
</head>
<body>
<center>
<script>
function create() {
var url = document.getElementById('input').value;
var win = window.open();
win.document.body.style.margin = '0';
win.document.body.style.height = '100vh';
var iframe = win.document.createElement('iframe');
iframe.style.border = 'none';
iframe.style.width = '100%';
iframe.style.height = '100%';
iframe.style.margin = '0';
iframe.src = "https://" + url;
win.document.body.appendChild(iframe);
}
</script>
<input class="button" type="text" value="(Enter URL Here)" placeholder="https://example.com" id='input' autofocus>
</center><center><button class="button" onclick='create()'>Open in about:blank (Use this button if the url does not have https://)</button></center><center>
<button class="button" onclick='create2()'>Open in about:blank (Use this button if the url has https://)</button>
<script>
function create2() {
var url = document.getElementById('input').value;
var win = window.open();
win.document.body.style.margin = '0';
win.document.body.style.height = '100vh';
var iframe = win.document.createElement('iframe');
iframe.style.border = 'none';
iframe.style.width = '100%';
iframe.style.height = '100%';
iframe.style.margin = '0';
iframe.src = url;
win.document.body.appendChild(iframe);
}
</script>
</center><center>
<a href="index.html" class="button">Return to main page</a>
</body></center>
</html>