mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-15 21:00:00 -04:00
Cookie Auth
This commit is contained in:
parent
4ab619b36e
commit
04d52d99f1
4 changed files with 55 additions and 64 deletions
|
@ -75,7 +75,7 @@
|
||||||
</script>
|
</script>
|
||||||
<div class="d-flex align-items-center order-12" style="height:200px;">
|
<div class="d-flex align-items-center order-12" style="height:200px;">
|
||||||
<div class="container border rounded text-center justify-content-center align-items-center button" style="color: rgb(255,255,255);filter: blur(0px); opacity: 0.95;">
|
<div class="container border rounded text-center justify-content-center align-items-center button" style="color: rgb(255,255,255);filter: blur(0px); opacity: 0.95;">
|
||||||
<form onkeydown="nu()">
|
<form id="pc" onkeydown="nu()">
|
||||||
<p style=" font-size: 46px; ">No​de Unbloc​ker</p>
|
<p style=" font-size: 46px; ">No​de Unbloc​ker</p>
|
||||||
<p style="font-family: 'Montserrat Alternates', sans-serif; ">A flexib​le seco​ndary pr​oxy compared to All​oy, P​M and P​D.</p>
|
<p style="font-family: 'Montserrat Alternates', sans-serif; ">A flexib​le seco​ndary pr​oxy compared to All​oy, P​M and P​D.</p>
|
||||||
<div class="input-group ">
|
<div class="input-group ">
|
||||||
|
@ -85,6 +85,19 @@
|
||||||
0px;height: 46.126px;font-family: 'Montserrat Alternates', sans-serif;font-size: 16px; ">Go</button></div>
|
0px;height: 46.126px;font-family: 'Montserrat Alternates', sans-serif;font-size: 16px; ">Go</button></div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
<script>
|
||||||
|
var header = document.getElementById("pc");
|
||||||
|
var btns = header.getElementsByClassName("nprox");
|
||||||
|
for (var i = 0; i < btns.length; i++) {
|
||||||
|
btns[i].addEventListener("click", function() {
|
||||||
|
var current = document.getElementsByClassName("active");
|
||||||
|
if (current.length > 0) {
|
||||||
|
current[0].className = current[0].className.replace(" active", "");
|
||||||
|
}
|
||||||
|
this.className += " active";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-primary " style="font-size: 20px;font-family: 'Montserrat Alternates', sans-serif; ">More Informat​ion:<br></p>
|
<p class="text-primary " style="font-size: 20px;font-family: 'Montserrat Alternates', sans-serif; ">More Informat​ion:<br></p>
|
||||||
<p class="text-light " style="font-family: Lato, sans-serif; ">Works on Di​scord (QR Code Only), Yout​ube (Might need to reload), etc.<br><br>Many sites work with this. Explore!</p>
|
<p class="text-light " style="font-family: Lato, sans-serif; ">Works on Di​scord (QR Code Only), Yout​ube (Might need to reload), etc.<br><br>Many sites work with this. Explore!</p>
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
function $(id) {
|
|
||||||
return document.getElementById(id);
|
|
||||||
};
|
|
||||||
|
|
||||||
$('nprox').onclick = function nu() {
|
|
||||||
document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
|
||||||
}
|
|
||||||
|
|
||||||
$('al').onclick = function nu() {
|
|
||||||
document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
|
||||||
}
|
|
||||||
|
|
||||||
$('pmprox').onclick = function nu() {
|
|
||||||
document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
|
||||||
}
|
|
||||||
|
|
||||||
$('pdprox').onclick = function nu() {
|
|
||||||
document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
|
||||||
}
|
|
||||||
|
|
||||||
var host = location.hostname.split('.');
|
|
||||||
var auth = location.hostname;
|
|
||||||
if (host.length == 3) {
|
|
||||||
auth = `${host[1]}.${host[2]}`;
|
|
||||||
}
|
|
|
@ -3,45 +3,48 @@ function $(id) {
|
||||||
};
|
};
|
||||||
|
|
||||||
$('nprox').onclick = function() {
|
$('nprox').onclick = function() {
|
||||||
var url = $('url').value;
|
var url = $('url').value;
|
||||||
var det = document.domain;
|
var det = document.domain;
|
||||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||||
window.location.href = "https://a." + domain + "/call/" + url;
|
window.location.href = "https://a." + domain + "/call/" + url;
|
||||||
document.cookie = 'nu_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
e.addEventListener('click', () => {
|
||||||
return false;
|
document.cookie = 'nu_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
||||||
};
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
$('pdprox').onclick = function() {
|
$('pdprox').onclick = function() {
|
||||||
var url = $('url').value;
|
var url = $('url').value;
|
||||||
var det = document.domain;
|
var det = document.domain;
|
||||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||||
window.location.href = "https://pd." + domain + "/course/" + url;
|
window.location.href = "https://pd." + domain + "/course/" + url;
|
||||||
document.cookie = 'pd_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
e.addEventListener('click', () => {
|
||||||
return false;
|
document.cookie = 'pd_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
||||||
};
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
$('pmprox').onclick = function() {
|
$('pmprox').onclick = function() {
|
||||||
var url = $('url').value;
|
var url = $('url').value;
|
||||||
var det = document.domain;
|
var det = document.domain;
|
||||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||||
window.location.href = "https://p." + domain + "/" + url;
|
window.location.href = "https://p." + domain + "/" + url;
|
||||||
document.cookie = 'pm_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
e.addEventListener('click', () => {
|
||||||
return false;
|
document.cookie = 'pm_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;';
|
||||||
};
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
// Cookie Auth
|
// Cookie Auth
|
||||||
var host = location.hostname.split('.');
|
var host = location.hostname.split('.');
|
||||||
var auth = location.hostname;
|
var auth = location.hostname;
|
||||||
if (host.length == 3) {
|
if (host.length == 3) {
|
||||||
auth = `${host[1]}.${host[2]}`;
|
auth = `${host[1]}.${host[2]}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
Array.from(document.getElementsByTagName('auth')).forEach(e => {
|
Array.from(document.getElementsByTagName('button')).forEach(e => {
|
||||||
e.addEventListener('click', () => {
|
e.addEventListener('click', () => {
|
||||||
document.cookie = 'session; max-age=259200; sameSite=lax; domain=' + auth + '; path=/; secure;';
|
document.cookie = 'session; max-age=259200; sameSite=lax; domain=' + auth + '; path=/; secure;';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
$('url').focus();
|
$('url').focus();
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
function nu() {
|
function px() {
|
||||||
$('url').focus();
|
$('url').focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue