mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix bugs
This commit is contained in:
parent
99f92baa89
commit
c751097333
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/custom-navbar.min.css
vendored
2
min/custom-navbar.min.css
vendored
File diff suppressed because one or more lines are too long
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
@ -741,7 +741,7 @@ body.all-navbar-fill .search-bar-ctnr .search-bar .search-btn,
|
||||
body.all-navbar-fill .nav-header-wrapper .nav-header .nav-header-mainsite,
|
||||
body.all-navbar-fill .nav-header-wrapper .nav-header .order-center
|
||||
{
|
||||
color: var(--foreground-color) !important;
|
||||
color: var(--foreground-color-d) !important;
|
||||
}
|
||||
body.all-navbar-fill .link-navbar .search-bar-ctnr .search-bar input,
|
||||
body.all-navbar-fill .nav-header-wrapper .nav-header .nav-header-search-bar,
|
||||
@ -779,7 +779,7 @@ body.all-navbar-fill .link-navbar .publish-btn
|
||||
box-shadow: none !important;
|
||||
}
|
||||
body.all-navbar-fill .link-navbar .nav-item:hover .nav-link .label,
|
||||
body.all-navbar-fill .link-navbar .shortcuts-ctnr .shortcut-item .label-wrapper .text:hover
|
||||
body.all-navbar-fill .link-navbar .shortcuts-ctnr .shortcut-item .label-wrapper .text:hover,
|
||||
body.all-navbar-fill .link-navbar .my-link-btn .label:hover,
|
||||
body.all-navbar-fill .live-room-app .link-navbar .nav-item:hover,
|
||||
body.all-navbar-fill .live-room-app .link-navbar .shortcuts-ctnr .shortcut-item:hover
|
||||
|
||||
@ -67,7 +67,11 @@ const supportedUrls = [
|
||||
"/big.bilibili.com",
|
||||
"/message.bilibili.com",
|
||||
];
|
||||
if (!supportedUrls.some(it => document.URL.includes(it)))
|
||||
const unsupportedUrls = [
|
||||
"/t.bilibili.com/lottery/h5/index/#/result",
|
||||
]
|
||||
if (!supportedUrls.some(it => document.URL.includes(it))
|
||||
|| unsupportedUrls.some(it => document.URL.includes(it)))
|
||||
{
|
||||
return attributes;
|
||||
}
|
||||
@ -445,7 +449,7 @@ class UserInfo extends NavbarComponent
|
||||
}
|
||||
async init()
|
||||
{
|
||||
const panel = await SpinQuery.select(".user-info-panel");
|
||||
const panel = await SpinQuery.select(".custom-navbar .user-info-panel");
|
||||
new Vue({
|
||||
el: panel,
|
||||
data: {
|
||||
@ -484,7 +488,7 @@ class UserInfo extends NavbarComponent
|
||||
}
|
||||
},
|
||||
});
|
||||
const face = await SpinQuery.select(".user-face");
|
||||
const face = await SpinQuery.select(".custom-navbar .user-face-container .user-face");
|
||||
if (userInfo.isLogin)
|
||||
{
|
||||
const faceUrl = userInfo.face.replace("http", "https");
|
||||
@ -498,7 +502,7 @@ class UserInfo extends NavbarComponent
|
||||
// face.style.backgroundImage = `url('${userInfo.face}@68w_68h.jpg')`;
|
||||
if (userInfo.pendant.image)
|
||||
{
|
||||
const pendant = await SpinQuery.select(".user-pendant");
|
||||
const pendant = await SpinQuery.select(".custom-navbar .user-face-container .user-pendant");
|
||||
const pendantUrl = userInfo.pendant.image.replace("http", "https");
|
||||
// pendant.setAttribute("src", pendantUrl);
|
||||
const pendantBaseSize = 116;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user