mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-08-20 04:23:24 +08:00
24 lines
616 B
JavaScript
24 lines
616 B
JavaScript
|
|
// @ts-check
|
||
|
|
|
||
|
|
(() => {
|
||
|
|
const applyHideSettings = () => {
|
||
|
|
if (global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.autoHide) {
|
||
|
|
const minimizeBtnEl = document.getElementsByClassName(
|
||
|
|
"index__button2__2mhwC3oY"
|
||
|
|
)[0].children[0];
|
||
|
|
// @ts-expect-error
|
||
|
|
minimizeBtnEl.click();
|
||
|
|
} else if (global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.notDisplay) {
|
||
|
|
const rootEl = document.getElementById("root");
|
||
|
|
// @ts-expect-error
|
||
|
|
rootEl.style["display"] = "none";
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
const onMounted = () => {
|
||
|
|
applyHideSettings();
|
||
|
|
};
|
||
|
|
|
||
|
|
onMounted();
|
||
|
|
})();
|