-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
Cloak.html
42 lines (39 loc) · 1.15 KB
/
Cloak.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
<!DOCTYPE html>
<html>
<head>
<title>Tab Cloak</title>
<style>
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
background-color: #000000;
}
button {
padding: 10px 20px;
font-size: 16px;
background-color: #3498db;
color: #ffffff;
border: none;
borer-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<button onclick="openNewWindow()">Cloak</button>
<script>
function openNewWindow() {
var newWindow = window.open();
var iframe = document.createElement('iframe');
iframe.style.width = '100%';
iframe.style.height = '600px';
iframe.style.border = 'none';
iframe.src = 'https://www.example.com/';
newWindow.document.body.appendChild(iframe);
}
</script>
</body>
</html>