Skip to content

Commit 2c8a421

Browse files
authored
added about:blank cloaker (#25)
1 parent 36ac092 commit 2c8a421

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

cloaker.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<title></title>
6+
<style>
7+
body {
8+
text-align: center;
9+
color: white;
10+
background-color: #202020;
11+
font-family: sans-serif;
12+
background-color: black;
13+
}
14+
15+
input[type="text"] {
16+
background: rgb(119,221,119);
17+
height: 50px;
18+
width: 400px;
19+
font-size: 20px;
20+
color: black;
21+
border: none;
22+
padding-left: 10px;
23+
}
24+
25+
input[type="text"]::placeholder {
26+
color: black;
27+
}
28+
29+
input[type="text"]:focus {
30+
outline: none;
31+
}
32+
</style>
33+
</head>
34+
<body>
35+
<br>
36+
<center>
37+
<h1>about:blank cloaker</h1>
38+
<br><br>
39+
<input type="text" id="urlInput" placeholder="Enter URL" required>
40+
<br><br>
41+
<button style="background: rgb(119,221,119);height:200px;width:400px;font-size:40px;">Bypass</button>
42+
</center>
43+
<script>
44+
var win;
45+
46+
document.querySelector('button').onclick = function() {
47+
var urlInput = document.getElementById('urlInput');
48+
var url = urlInput.value;
49+
50+
if (!url.startsWith("https://")) {
51+
url = "https://" + url;
52+
}
53+
54+
if (url) {
55+
if (win) {
56+
win.focus();
57+
} else {
58+
win = window.open();
59+
win.document.body.style.margin = '0';
60+
win.document.body.style.height = '100vh';
61+
var iframe = win.document.createElement('iframe');
62+
iframe.style.border = 'none';
63+
iframe.style.width = '100%';
64+
iframe.style.height = '100%';
65+
iframe.style.margin = '0';
66+
iframe.src = url;
67+
win.document.body.appendChild(iframe);
68+
}
69+
document.querySelector('button').style.background = '#FF6D6A';
70+
document.querySelector('button').innerHTML = "Local-Page Opened!";
71+
}
72+
};
73+
</script>
74+
</body>
75+
</html>

0 commit comments

Comments
 (0)