mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
14 lines
403 B
TypeScript
14 lines
403 B
TypeScript
import { addComponentListener } from '@/core/settings'
|
|
import { select } from '@/core/spin-query'
|
|
|
|
export const setupSkinSimplify = async () => {
|
|
const skinCss = await select('#skin-css') as HTMLStyleElement
|
|
if (!skinCss) {
|
|
return
|
|
}
|
|
console.log(skinCss)
|
|
addComponentListener('simplifyLiveroom.switch-skin', (disable: boolean) => {
|
|
skinCss.media = disable ? 'none' : 'all'
|
|
}, true)
|
|
}
|