From 6438e533d655e82f955a63e39cf7a8eb42c0b35e Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Thu, 30 May 2024 16:46:48 +0700 Subject: [PATCH] Hide rocket animation in Smart TV profile --- src/modules/loading-screen.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/loading-screen.ts b/src/modules/loading-screen.ts index 08f9503..624ede2 100644 --- a/src/modules/loading-screen.ts +++ b/src/modules/loading-screen.ts @@ -46,6 +46,10 @@ export class LoadingScreen { #game-stream div[class*=RocketAnimation-module__container] > svg { display: none; } + +#game-stream video[class*=RocketAnimationVideo-module__video] { + display: none; +} `; $bgStyle.textContent += css; } @@ -163,9 +167,9 @@ export class LoadingScreen { } static reset() { - LoadingScreen.#$waitTimeBox && LoadingScreen.#$waitTimeBox.classList.add('bx-gone'); - LoadingScreen.#$bgStyle && (LoadingScreen.#$bgStyle.textContent = ''); + LoadingScreen.#$bgStyle && setTimeout(() => LoadingScreen.#$bgStyle.textContent = '', 2000); + LoadingScreen.#$waitTimeBox && LoadingScreen.#$waitTimeBox.classList.add('bx-gone'); LoadingScreen.#waitTimeInterval && clearInterval(LoadingScreen.#waitTimeInterval); LoadingScreen.#waitTimeInterval = null; }