mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix navbar placeholder not hiding
This commit is contained in:
parent
ebfb84c3e8
commit
77bc1d60d8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -21,7 +21,7 @@
|
||||
"custom-control-background.min.js": "6B6B7E99E88E9242AB4AB3A0B108AADBF48BD43D6A8F11F0E281F476A7D84C47",
|
||||
"custom-navbar.min.css": "4D1AEE4E9E6B97E698F2C995622C9019BAAFFA5675680B47743CE2EE4B1BF620",
|
||||
"custom-navbar.min.html": "72A66BCE1D82163555AFBEAC651A0BB42A661338878C55B9BE8CE3655767A3CC",
|
||||
"custom-navbar.min.js": "3C02023482679459330A618F0FC7F8B2337C1C20F28B06D5931F87FD24241E3A",
|
||||
"custom-navbar.min.js": "D19B794C325D8C78113DCC8B890BBEFC2CC37D6F49DA224BC2623A6DFB8853C9",
|
||||
"danmaku-converter.min.js": "E056FD0E80469D3EC4C11BDD78435A1EBFA319DA8DAD9063286E1CA50037EA94",
|
||||
"dark-important.min.css": "7FC057E91B5BE14BF91A549EB33D9828D044546DBC5F47EF8E7829CD64BD5774",
|
||||
"dark-navbar.min.css": "C02A4001942DE8E26C61520C2499D80512D8CBA0BBA81E7065BA219C4DF9C11D",
|
||||
|
||||
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
2
min/custom-navbar.min.js
vendored
2
min/custom-navbar.min.js
vendored
File diff suppressed because one or more lines are too long
@ -89,14 +89,14 @@ try {
|
||||
const resources = new ResourceManager()
|
||||
events.init.complete()
|
||||
resources.styleManager.prefetchStyles()
|
||||
if (settings.customNavbar) {
|
||||
contentLoaded(() => {
|
||||
document.body.classList.add('custom-navbar-loading')
|
||||
if (settings.useDarkStyle) {
|
||||
document.body.classList.add('dark')
|
||||
}
|
||||
})
|
||||
}
|
||||
// if (settings.customNavbar) {
|
||||
// contentLoaded(() => {
|
||||
// document.body.classList.add('custom-navbar-loading')
|
||||
// if (settings.useDarkStyle) {
|
||||
// document.body.classList.add('dark')
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
events.styleLoaded.complete()
|
||||
|
||||
Object.assign(unsafeWindow.bilibiliEvolved, {
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
if (isIframe()) {
|
||||
return;
|
||||
}
|
||||
document.body.classList.add('custom-navbar-loading')
|
||||
document.body.style.setProperty("--navbar-bounds-padding", `0 ${settings.customNavbarBoundsPadding}%`);
|
||||
document.body.style.setProperty("--navbar-blur-opacity", settings.customNavbarBlurOpacity || 0.7);
|
||||
addSettingsListener("customNavbarBlurOpacity", value => {
|
||||
@ -229,6 +230,7 @@ const unsupportedUrls = [
|
||||
if (!supportedUrls.some(it => document.URL.includes(it))
|
||||
|| unsupportedUrls.some(it => document.URL.includes(it))) {
|
||||
showWidget = false;
|
||||
document.body.classList.remove('custom-navbar-loading')
|
||||
return attributes;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user