Added Stealth mode, Cleaned up

This commit is contained in:
QuiteAFancyEmerald 2020-11-07 02:09:37 +00:00
parent 408d42928d
commit 2b8304d050
30 changed files with 62 additions and 353 deletions

View file

@ -1,14 +0,0 @@
window.onload = function() {
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
window.location.href = "https://c." + domain + "/app";
document.cookie = '__chauth=yes; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
return false;
};
// Cookie Auth
var host = location.hostname.split('.');
var auth = location.hostname;
if (host.length == 3) {
auth = `${host[1]}.${host[2]}`;
}