This commit is contained in:
the1812 2019-05-01 11:16:48 +08:00
parent 99f92baa89
commit c751097333
6 changed files with 20 additions and 16 deletions

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

View File

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

View File

@ -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;