2025-04-18 19:20:46 +08:00
|
|
|
global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon = {
|
|
|
|
|
showAuraConfig: () => {
|
2025-06-13 16:24:10 +08:00
|
|
|
if (global.__HUGO_AURA_LOADER__["Aura.UI.Assistant.Config"].active) return;
|
|
|
|
|
global.__HUGO_AURA_LOADER__["Aura.UI.Assistant.Config"].active = true;
|
2025-04-18 19:20:46 +08:00
|
|
|
},
|
|
|
|
|
};
|
2025-06-13 16:24:10 +08:00
|
|
|
|
|
|
|
|
(() => {
|
|
|
|
|
let clickCounter = 0;
|
|
|
|
|
let clickTimeout = null;
|
|
|
|
|
|
|
|
|
|
const onMounted = () => {
|
|
|
|
|
if (global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod.showEntryIcon) {
|
|
|
|
|
const iconEl = document.getElementsByClassName("aura-header-icon")[0];
|
|
|
|
|
iconEl.classList.remove("aura-header-icon-hidden");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod
|
|
|
|
|
.fallbackAccessMethods.hotkey
|
|
|
|
|
) {
|
|
|
|
|
document.addEventListener("keydown", (event) => {
|
|
|
|
|
if (event.ctrlKey && event.shiftKey && event.key === "A") {
|
|
|
|
|
global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon.showAuraConfig();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod
|
|
|
|
|
.fallbackAccessMethods.touch
|
|
|
|
|
) {
|
|
|
|
|
const mesModelEl = document.getElementsByClassName(
|
|
|
|
|
"index__mes-modal__2hRouc6M"
|
|
|
|
|
)[0];
|
|
|
|
|
const verEl = mesModelEl.children[0];
|
|
|
|
|
verEl.onclick = () => {
|
|
|
|
|
clickCounter += 1;
|
|
|
|
|
if (clickCounter >= 7) {
|
|
|
|
|
global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon.showAuraConfig();
|
|
|
|
|
clickCounter = 0;
|
|
|
|
|
if (clickTimeout) {
|
|
|
|
|
clearTimeout(clickTimeout);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
clickTimeout = setTimeout(() => {
|
|
|
|
|
clickCounter = 0;
|
|
|
|
|
}, 10000);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onMounted();
|
|
|
|
|
})();
|