From 23cacd9385e934ce43967d1d5d053a0113dd9f50 Mon Sep 17 00:00:00 2001 From: hanyd Date: Fri, 6 Dec 2024 08:56:54 +0800 Subject: [PATCH] fix element attachment --- src/content.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/content.ts b/src/content.ts index 69bf49c0..20369e3e 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1566,11 +1566,9 @@ function videoElementChange(newVideo: boolean): void { waitFor(() => Config.isReady() && !document.hidden, 24 * 60 * 60, 500).then(() => { if (newVideo) { setupVideoListeners(); - waitFor(getPageLoaded, 20000, 10).then(() => { - setupSkipButtonControlBar(); - setupCategoryPill(); - setupDescriptionPill(); - }); + setupSkipButtonControlBar(); + setupCategoryPill(); + setupDescriptionPill(); } updatePreviewBar();