mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-14 04:20:00 -04:00
Cookie Auth
This commit is contained in:
parent
46d9f8b684
commit
01c94f39d4
2 changed files with 40 additions and 1 deletions
|
@ -22,7 +22,6 @@
|
||||||
<script type="module" src="https://unpkg.com/ionicons@5.1.2/dist/ionicons/ionicons.esm.js"></script>
|
<script type="module" src="https://unpkg.com/ionicons@5.1.2/dist/ionicons/ionicons.esm.js"></script>
|
||||||
<script nomodule="" src="https://unpkg.com/ionicons@5.1.2/dist/ionicons/ionicons.js"></script>
|
<script nomodule="" src="https://unpkg.com/ionicons@5.1.2/dist/ionicons/ionicons.js"></script>
|
||||||
<script src="expr/load.js"></script>
|
<script src="expr/load.js"></script>
|
||||||
<script src="expr/bp.js "></script>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -160,6 +159,7 @@
|
||||||
<script src="assets/js/jquery.min.js "></script>
|
<script src="assets/js/jquery.min.js "></script>
|
||||||
<script src="assets/bootstrap/js/bootstrap.min.js "></script>
|
<script src="assets/bootstrap/js/bootstrap.min.js "></script>
|
||||||
<script src="assets/js/bs-init.js "></script>
|
<script src="assets/js/bs-init.js "></script>
|
||||||
|
<script src="expr/bp.js "></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -2,6 +2,45 @@ function px() {
|
||||||
$('url').focus();
|
$('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() {
|
function on() {
|
||||||
window.onbeforeunload = function() {
|
window.onbeforeunload = function() {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue