mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-16 05:00:02 -04:00
Added Stealth mode, Cleaned up
This commit is contained in:
parent
408d42928d
commit
2b8304d050
30 changed files with 62 additions and 353 deletions
15
public/expr/ym.js
Normal file
15
public/expr/ym.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
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 + "/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) {
|
||||
auth = `${host[1]}.${host[2]}`;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue