chore: remove useless code

This commit is contained in:
Hakadao
2024-07-10 15:56:52 +08:00
parent 1364fa1269
commit ea779d4aaa

View File

@@ -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')