-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
101 lines (99 loc) · 2.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
<!DOCTYPE html>
<head>
<style>
#output {
color: white;
text-align: center;
font-size: 40px;
}
#button {
margin: 0 auto;
height: 200px;
width: 600px;
text-align: center;
font-size: 50px;
vertical-align: middle;
background-color: #ffffff;
display: table;
border-radius: 25px;
border: 1px black;
}
body {
background-color: #000000;
height: 400px;
}
</style>
<script>
var system = 0;
var mobile = "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25";
function setup() {
var uagent = navigator.userAgent;
var version="*";
var region="*";
var slash=0;
var dot=0;
var supported_regions=["US","EU","JP"];
var supported_versions=["1.7636","1.10.10166"];
var out = "";
if (uagent.indexOf("New Nintendo 3DS") != -1)
{
system = 2;
slash=uagent.lastIndexOf("/");
dot=uagent.lastIndexOf(".");
version=uagent.substring(slash+1,dot);
region=uagent.substring(dot+1,dot+3);
out = "NEW 3DS - "+region+" v"+version+"<br>";
}
else if(uagent.indexOf("Nintendo 3DS") != -1)
{
system = 1;
slash=uagent.lastIndexOf("/");
dot=uagent.lastIndexOf(".");
version=uagent.substring(slash+1,dot);
region=uagent.substring(dot+1,dot+3);
out = "OLD 3DS - "+region+" v"+version+"<br>";
}
else {
system = 0;
out = "Unsupported device<br>";
if (uagent == mobile) {
out = 'Please uncheck "Request Mobile Sites" in the Menu tab (bottom right corner)<br>';
}
}
if(system){
if(supported_regions.indexOf(region) == -1) {
out += "Unsupported region<br>";
system=0;
}
if(supported_versions.indexOf(version) == -1) {
out += "Unsupported version<br>";
system=0;
}
if(region=="" || version=="") {
out += "Wtf?";
system=0;
}
}
document.getElementById("output").innerHTML = out+"<br><br><br>";
if(system==0) document.getElementById("button").innerHTML = "I AM ERROR";
}
function go() {
if (system == 1) {
window.location.href = "obhax.html";
}
else if (system == 2) {
window.location.href = "nbhax.html";
}
else {
document.getElementById("output").innerHTML = "WHAT IS WRONG WITH THE ELF<br><br><br><br>";
}
}
</script>
</head>
<body onload="setup()">
<div id="output">HAVE A PILLORY (you shouldn't see this)
</div>
<button id="button" onclick="go()">PROCEED TO FULLHAXX
</button>
</body>
</html>