mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-14 04:20:00 -04:00
48 lines
No EOL
1.3 KiB
JavaScript
48 lines
No EOL
1.3 KiB
JavaScript
function px() {
|
|
$('url').focus();
|
|
}
|
|
|
|
function $(id) {
|
|
return document.getElementById(id);
|
|
};
|
|
|
|
$('nprox').onclick = function() {
|
|
document.cookie = 'nu_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
|
return false;
|
|
};
|
|
|
|
$('pdprox').onclick = function() {
|
|
document.cookie = 'pd_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
|
return false;
|
|
};
|
|
|
|
$('pmprox').onclick = function() {
|
|
document.cookie = 'pm_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
|
return false;
|
|
};
|
|
|
|
// AL Auth
|
|
$('al').onclick = function() {
|
|
document.cookie = 'al_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; 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.getElementsByTagName('button')).forEach(e => {
|
|
e.addEventListener('click', () => {
|
|
document.cookie = 'session; max-age=259200; sameSite=lax; domain=' + auth + '; path=/; secure;';
|
|
});
|
|
});
|
|
|
|
|
|
function on() {
|
|
window.onbeforeunload = function() {
|
|
return true;
|
|
};
|
|
} |