From ea779d4aaa1004d88cdda5ccb78767e3e229f4c8 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Wed, 10 Jul 2024 15:56:52 +0800 Subject: [PATCH] chore: remove useless code --- src/styles/adaptedStyles/index.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/styles/adaptedStyles/index.ts b/src/styles/adaptedStyles/index.ts index 357e666a..4a0d2c16 100644 --- a/src/styles/adaptedStyles/index.ts +++ b/src/styles/adaptedStyles/index.ts @@ -116,23 +116,8 @@ async function setupStyles() { document.documentElement.classList.add('forceDark') await import('./creativeCenterPage.scss') document.documentElement.classList.add('creativeCenterPage') - // runWhenIdle(() => { - // delay(5000) - - // // Get all div elements on the page - // const divs = document.querySelectorAll('div') - - // // Iterate over each div element - // divs.forEach((div) => { - // // Get the computed style of the div - // const style = window.getComputedStyle(div) - // // Check if the background-image property is not 'none' - // if (style.backgroundImage !== 'none') { - // div.style.filter = 'var(--bew-filter-force-dark)' - // } - // }) - // }) } + // account settings page else if (/^https?:\/\/account\.bilibili\.com\/.*$/.test(currentUrl)) { await import('./accountSettingsPage.scss')