mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-15 12:50:01 -04:00
Updated Discord Page
This commit is contained in:
parent
1c3087b470
commit
aad8b90478
3 changed files with 174 additions and 37 deletions
16
public/expr/dbp.js
Normal file
16
public/expr/dbp.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
window.onload = function() {
|
||||
var url = `https://discord.com/login`;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(url)
|
||||
window.location.href = "https://cdn." + domain + "/fetch/utils/?url=" + origin;
|
||||
document.cookie = '__alloy_cookie_auth=yes; expires=' + (Date.now() + 259200) + '; SameSite=Lax; 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]}`;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue