diff --git a/public/assets/js/ym.js b/public/assets/js/ym.js new file mode 100644 index 00000000..24b8a466 --- /dev/null +++ b/public/assets/js/ym.js @@ -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 + "/home/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]}`; +} \ No newline at end of file diff --git a/public/y.html b/public/y.html index 296acd15..04ea7c09 100644 --- a/public/y.html +++ b/public/y.html @@ -10,20 +10,133 @@ :D"> - + + + + + + + + + + +
- - + +