forked from Cookies_Github_mirror/AquaDX
[+] Chusan Userbox Egg
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
import { ANNOUNCEMENT } from "./libs/config";
|
||||
import { t } from "./libs/i18n";
|
||||
import Transfer from "./pages/Transfer/Transfer.svelte";
|
||||
import { link } from "d3";
|
||||
|
||||
console.log(`%c
|
||||
┏━┓ ┳━┓━┓┏━
|
||||
@@ -38,16 +39,16 @@
|
||||
})
|
||||
}).catch(e => console.error(e))
|
||||
|
||||
const themeStyle = document.createElement("link");
|
||||
themeStyle.rel = "stylesheet";
|
||||
switch (localStorage.getItem("theme")) {
|
||||
case "cn":
|
||||
themeStyle.href = "/assets/theme/cn.css";
|
||||
};
|
||||
if (themeStyle.href)
|
||||
document.head.appendChild(themeStyle);
|
||||
}
|
||||
let path = window.location.pathname;
|
||||
|
||||
if (new Date("April 2 2025") - new Date() > 0 && localStorage.getItem("token"))
|
||||
{
|
||||
const s = document.createElement("link");
|
||||
s.href = "/assets/chu/aqua.css";
|
||||
s.rel = "stylesheet";
|
||||
document.head.appendChild(s);
|
||||
}
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
|
||||
@@ -115,6 +115,16 @@
|
||||
link.click();
|
||||
}
|
||||
|
||||
function g(v: string) {
|
||||
if (v != ("\x63\x68\x75\x6E\x69\x74\x68\x6D ").repeat(3).trim()) return;
|
||||
const t = v.substring(5, 6) + v.substring(1, 2) + "eme";
|
||||
if (!localStorage.getItem(t)) {
|
||||
localStorage.setItem(t, v.substring(0, 1) + "\x6E");
|
||||
} else
|
||||
localStorage.removeItem(t);
|
||||
location.reload();
|
||||
}
|
||||
|
||||
let DDSreader: DDS | undefined;
|
||||
|
||||
let USERBOX_PROGRESS = 0;
|
||||
@@ -301,7 +311,7 @@
|
||||
<span>{USERBOX_SETUP_MODE ? t('userbox.new.url_warning') : USERBOX_SETUP_TEXT}</span>
|
||||
<div class="actions">
|
||||
{#if USERBOX_SETUP_MODE}
|
||||
<input type="text" on:keyup={e => {if (e.key == "Enter") userboxHandleInput((e.target as HTMLInputElement).value)}} class="add-margin" placeholder="Base URL">
|
||||
<input type="text" on:keyup={e => {if (e.key == "Enter") { userboxHandleInput((e.target as HTMLInputElement).value) } else g(e.currentTarget.value)}} class="add-margin" placeholder="Base URL">
|
||||
{:else}
|
||||
{#if USERBOX_PROGRESS != 0}
|
||||
<div class="progress">
|
||||
|
||||
Reference in New Issue
Block a user