mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
feat: adapt to dark theme for moments page
* refactor: separate styles for comments section
This commit is contained in:
@@ -80,6 +80,8 @@ function injectApp() {
|
||||
|| /https?:\/\/(www.)?bilibili.com\/list\/ml.*/.test(currentUrl)
|
||||
// search page
|
||||
|| /https?:\/\/search.bilibili.com\.*/.test(currentUrl)
|
||||
// moments
|
||||
|| /https?:\/\/t.bilibili.com\.*/.test(currentUrl)
|
||||
) {
|
||||
// const originalPageContent = document.querySelector('#i_cecream')
|
||||
// if (originalPageContent)
|
||||
|
||||
@@ -140,6 +140,7 @@ onMounted(() => {
|
||||
document.body.style.setProperty('background-color', 'unset', 'important')
|
||||
document.documentElement.style.setProperty('background-color', 'unset', 'important')
|
||||
}
|
||||
document.documentElement.style.setProperty('font-size', '14px')
|
||||
|
||||
if (mainAppRef.value) {
|
||||
mainAppRef.value.addEventListener('scroll', () => {
|
||||
|
||||
Reference in New Issue
Block a user