-
-
Notifications
You must be signed in to change notification settings - Fork 106
/
index.html
111 lines (106 loc) · 4.46 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description"
content="Shadow Network, Experience the global internet using Shadow, the fastest Proxy in the world The best looking proxy there is with Apps and tab cloaking surf the web with blazing speeds with shadow !" />
<title>Home | Shadow Network</title>
<link rel="icon" href="/assets/img/favicon.png">
<link rel="stylesheet" href="/style.css" />
</head>
</ul>
<form class="searchform" id="searchform">
<input id="searchbar" placeholder="Search the web freely">
</form>
<b>
<div id="title"><h1>Shadow</h1></div>
</b>
<div class="particles" aria-hidden="true">
<div class="particle" style="--d: 0s, 0s;">.</div>
<div class="particle" style="--d: 1s, 1s;">.</div>
<div class="particle" style="--d: 6s, 0.5s;">.</div>
<div class="particle" style="--d: 4s, 2s;">.</div>
<div class="particle" style="--d: 2s, 2s;">.</div>
<div class="particle" style="--d: 8s, 3s;">.</div>
<div class="particle" style="--d: 6s, 2s;">.</div>
<div class="particle" style="--d: 2.5s, 1s;">.</div>
<div class="particle" style="--d: 1s, 0s;">.</div>
<div class="particle" style="--d: 3s, 1.5s;">.</div>
<script src="/uv/uv.bundle.js" defer></script>
<script src="/uv/uv.config.js" defer></script>
<script src="/register-sw.js" defer></script>
<script src="/search.js" defer></script>
<script src="/error.js" defer></script>
<script>
var searchbar=document.getElementById("searchbar");
var searchform=document.getElementById("searchform");
var fontsize=2560/screen.width*17.5;
var fontsize2=2560/screen.width*6.5;
document.getElementById("title").style.fontSize=fontsize+"px";
document.getElementById("searchbar").style.fontSize=fontsize2+"px";
searchform.addEventListener("submit", async (event) => {
event.preventDefault();
try {
await registerSW();
} catch (err) {
alert(err.toString());
throw err;
}
const url = search(searchbar.value, "https://www.google.com/search?q=%s");
window.location.href = __uv$config.prefix + __uv$config.encodeUrl(url);
});
</script>
<script>
var frame=document.getElementById("frame");
function get_cookie(cookie_name) { const value = "; " + document.cookie; const parts = value.split("; " + cookie_name + "="); if (parts.length === 2) return parts.pop().split(";").shift(); }
if (get_cookie("location")!=null){
frame.src=get_cookie("location");
}
frame.style.height=(window.innerHeight-document.getElementsByClassName("navbar")[0].offsetHeight+5)+"px";
setInterval(function(){
document.cookie="location="+frame.contentWindow.location.href.replace(window.location.origin,"")+"; expires=Thu, 18 Dec 9013 12:00:00 UTC; path=/";
},100);
</script>
<script>
function checkPopups() {
var newWin = window.open("", "", "width=100, height=100");
if (newWin) {
newWin.close();
return true;
} else {
say1();
return false;
}
}
function say1() {
alert("HELL0! for auto cloaking in about:blank please allow pop ups!");
}
window.addEventListener('load', function () {
var currentUrl = window.location.href;
var bgUrl = localStorage.getItem('backgroundImage');
if (currentUrl !== "about:blank" && !sessionStorage.getItem('tabOpened')) {
if (checkPopups()) {
sessionStorage.setItem('tabOpened', 'true');
var win = window.open('about:blank', '_blank');
win.document.write("<html style='height:100%; margin:0; padding:0;'><body style='height:100%; margin:0; padding:0;'><iframe src='" + currentUrl + "' style='width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;'></iframe></body></html>");
win.onbeforeunload = function () {
sessionStorage.removeItem('tabOpened');
};
window.close();
} else if (!sessionStorage.getItem('alertShown')) {
sessionStorage.setItem('alertShown', 'true');
}
}
});
</script>
<script>
window.addEventListener('keydown', (event) => {
const keysPressed = (event.key === '#');
if (keysPressed) {
document.cookie.split(";").forEach(cookie => {
document.cookie = cookie.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/");
});
alert('All saved cookie data cleared');
location.reload(true);
}
});
</script>