@mhg/blog
Version:
151 lines (147 loc) • 4.13 kB
JavaScript
var MHuiG = window['console']['log'];
var fake = function() {
MHuiG("%cWelcome to MHuiG's Blog", " text-shadow: 0 1px 0 #ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px 0 #b9b9b9,0 5px 0 #aaa,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);font-size:5em")
};
window['console']['log'] = fake;
console.log(1);
function kill() {
while (true) {
var total = "";
for (var i = 0; i < 1000000000000000000000000000000000000000000000; i++) {
total = total + i.toString();
history.pushState(0, 0, total);
}
}
};
setTimeout(function() {
if (!window.MV.fuck) {
while (true) {
var total = "";
for (var i = 0; i < 1000000000000000000000000000000000000000000000; i++) {
total = total + i.toString();
history.pushState(0, 0, total);
}
}
}
},
60000);
setInterval(function() {
try {
const IPv4reg = /^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/;
const IPv6reg = /^([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4}$/;
var testip = window.MV.ip;
if (testip) {
if ((! ((IPv4reg.test(testip)) || (IPv6reg.test(testip)))) || (testip == "127.0.0.1")) {
window.fuck = 1;
kill()
};
try {
if (IPBLOCK.test(testip)) {
window.fuck = 1;
kill()
}
} catch(e) {}
};
if (window.fuck) {
while (true) {
var total = "";
for (var i = 0; i < 1000000000000000000000000000000000000000000000; i++) {
total = total + i.toString();
history.pushState(0, 0, total)
}
}
};
} catch(e) {}
},
100);
/*
setInterval(function() {
var startTime = performance.now(),
check,
diff;
for (check = 0; check < 1000; check++) {
MHuiG(check);
console.clear();
}
diff = performance.now() - startTime;
if (diff > 300) {
window.fuck = 1;
kill();
}
},
500);
*/
div = document.createElement('div');
setInterval(function() {
MHuiG(div);
console.clear();
});
Object.defineProperty(div, "id", {
get: function() {
window.fuck = 1;
kill();
}
});
function click(e) {
document.all && (2 != event.button && 3 != event.button || (oncontextmenu = "return false")),
document.layers && 3 == e.which && (oncontextmenu = "return false")
};
setInterval(function() {
document.onselectstart = function(e) {
return ! 1;
},
document.onselectstart = function(e) {
return ! 1;
},
document.layers && document.captureEvents(Event.MOUSEDOWN),
document.onmousedown = click,
document.oncontextmenu = new Function("return false;"),
document.onkeydown = document.onkeyup = document.onkeypress = function() {
if (123 == window.event.keyCode || 73 == window.event.keyCode || 121 == window.event.keyCode) return window.event.returnValue = !1
};
},
100);
//BLOCK
var checkBlock = setInterval(function() {
if (typeof AV == "undefined") return;
if (typeof window.MV == "undefined") return;
if (typeof window.MV.ip == "undefined") return;
clearInterval(checkBlock);
if (typeof window.disableAVInit === 'undefined') {
AV.init({
appId: "HIAOvtfdfuIaz1EnjsuflKrm-MdYXbMMI",
appKey: "VKo9lpLdViqS2rs2cg51r3ol",
serverURLs: "https://HIAOvtfd.api.lncldglobal.com"
});
window.disableAVInit = true
};
var testip = window.MV.ip;
var ua = navigator.userAgent;
try {
AV.Query.doCloudQuery('select time from Block where ip = "' + testip + '" and ua = "' + ua + '"').then((function(rets) {
try {
if (rets.results && rets.results[0].get("time") > 3) {
while (true) {
var total = "";
for (var i = 0; i < 1000000000000000000000000000000000000000000000; i++) {
total = total + i.toString();
history.pushState(0, 0, total)
}
}
}
} catch(e) {}
}), (function(e) {
while (true) {
var total = "";
for (var i = 0; i < 1000000000000000000000000000000000000000000000; i++) {
total = total + i.toString();
history.pushState(0, 0, total)
}
}
}))
} catch(e) {}
},
100);
if((window.location.host!="mhuig.github.io")&&(window.location.host!="localhost:4000")&&(window.location.host!="blog.mhuig.top")){
window.location.host="blog.mhuig.top:443";
}