-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathapt.html
31 lines (28 loc) · 832 Bytes
/
apt.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
<html>
<head>
<!--
Lord!
Bless every person visiting this website! Bless the work they have to do right now!
-->
<script>
//Thanks to http://stackoverflow.com/questions/439463/how-to-get-get-and-post-variables-with-jquery#answer-439578
var $_GET = {};
document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
function decode(s) {
return decodeURIComponent(s.split("+").join(" "));
}
$_GET[decode(arguments[1])] = decode(arguments[2]);
});
if($_GET["name"]!=undefined && $_GET["name"]!="") {
window.location = "apt:" + $_GET["name"];
if(history.length != 1){
history.back();
}
}else
window.onload = function () { document.getElementsByTagName("body")[0].innerHTML = "flase GET Variable/Variables. Right: ?name=gedit"; };
</script>
</head>
<body id="body">
Please wait!
</body>
</html>