mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-17 05:20:01 -04:00
Cleaned Up
This commit is contained in:
parent
f3b96ce206
commit
df85b08da8
21 changed files with 1437 additions and 538 deletions
|
@ -1,13 +1,13 @@
|
|||
window.onload = function() {
|
||||
// similar behavior as an HTTP redirect
|
||||
var yt = `https://m.youtube.com`;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(yt);
|
||||
window.location.replace("https://" + domain + "/home/utils/?url=" + origin);
|
||||
document.cookie = '__alloy_cookie_auth=yes; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
}
|
||||
// Cookie Auth
|
||||
// similar behavior as an HTTP redirect
|
||||
var yt = `https://m.youtube.com`;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(yt);
|
||||
window.location.replace("https://" + domain + "/fetch/utils/?url=" + origin);
|
||||
document.cookie = '__alloy_cookie_auth=yes; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
}
|
||||
// Cookie Auth
|
||||
var host = location.hostname.split('.');
|
||||
var auth = location.hostname;
|
||||
if (host.length == 3) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue