mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 12:00:02 -04:00
Added Chatbox
This commit is contained in:
parent
f5d9539d09
commit
b9e47f1c20
3 changed files with 66 additions and 0 deletions
36
public/expr/ch.js
Normal file
36
public/expr/ch.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
function $(id) {
|
||||
return document.getElementById(id);
|
||||
};
|
||||
|
||||
//AL
|
||||
// $('al').onclick = function() {
|
||||
// document.cookie = '__alloy_cookie_auth=yes; expires=' + (Date.now() + 259200) + '; SameSite=None; domain=.' + auth + '; path=/; Secure;';
|
||||
// return false;
|
||||
//};
|
||||
|
||||
window.onload = function() {
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(url)
|
||||
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]}`;
|
||||
}
|
||||
|
||||
Array.from(document.getElementsByTagId('button')).forEach(e => {
|
||||
e.addEventListener('click', () => {
|
||||
document.cookie = 'session; max-age=259200; SameSite=None; domain=' + auth + '; path=/; Secure;';
|
||||
});
|
||||
});
|
||||
|
||||
window.onload = function() {
|
||||
$('url').focus();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue