-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathHTMLcloak.html
75 lines (75 loc) · 2.19 KB
/
HTMLcloak.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
<!--Download as HTML-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="icon" type="image/x-icon" href="https://ssl.gstatic.com/classroom/favicon.png">
<title>Home</title>
<style>
.background{
border: none;
width: 100%;
height: 100vh;
margin: 0;
z-index: 0;
background-color: rgb(0, 255, 0);
}
.title{
background-color: white;
font-family: arial;
z-index: 100;
position: absolute;
left: 100px;
top: 100px;
}
.desc{
background-color: white;
font-family: arial;
z-index: 100;
position: absolute;
left: 100px;
top: 400px;
}
.useful{
background-color: white;
font-family: arial;
z-index: 100;
position: absolute;
left: 100px;
top: 500px;
}
</style>
</head>
<body>
<div class="background"><img src="https://www.footprintcalculator.org/assets/images/city.png" alt="IDK why background doesnt work"></div>
<div class="title"><h1>About:blank cloaker!</h1></div>
<div class="desc"><span>Bypasses securly classroom!</span></div>
<div class="useful">
<input id="url" placeholder="url (include https://)">
<button onclick="blank(document.getElementById('url').value);">Blank!</button>
</div>
<script>
//credit to topvaz for creating this + me for the favicon
function blank(url) {
let 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);
var fav = win.document.createElement('link');
fav.setAttribute("rel", "icon");
fav.setAttribute("type", "image/x-icon");
fav.setAttribute("href", "https://ssl.gstatic.com/classroom/favicon.png");
win.document.querySelector("head").appendChild(fav);
var tit = win.document.createElement('title');
tit.innerHTML = "Home";
win.document.querySelector("head").appendChild(tit);
}
</script>
</body>
</html>