mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
26 lines
No EOL
752 B
JavaScript
26 lines
No EOL
752 B
JavaScript
function $(id) {
|
|
return document.getElementById(id);
|
|
};
|
|
//PM Load
|
|
$('pmprox').onclick = function() {
|
|
var url = $('url').value;
|
|
var det = document.domain;
|
|
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
|
document.getElementById("frame").src = "https://c." + domain + "/prox?url=" + url;
|
|
document.cookie = 'oldsmobile=1; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
|
document.getElementById("frame").style.visiblity = "visible";
|
|
return false;
|
|
};
|
|
|
|
// Cookie Auth
|
|
var host = location.hostname.split('.');
|
|
var auth = location.hostname;
|
|
if (host.length == 3) {
|
|
auth = `${host[1]}.${host[2]}`;
|
|
}
|
|
|
|
window.onload = function() {
|
|
$('url').focus();
|
|
}
|
|
$('url').focus();
|
|
} |