Fix style issues

This commit is contained in:
the1812 2019-04-25 21:53:51 +08:00
parent 9e2e325191
commit 29672688b6
9 changed files with 35 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

View File

@ -149,12 +149,13 @@ function saveSettings(newSettings)
GM_setValue(key, newSettings[key]);
}
}
function onSettingsChange(change)
function onSettingsChange()
{
// for (const key in settings)
// {
// GM_addValueChangeListener(key, change);
// }
console.warn("此功能已弃用.");
}
// if (typeof GM_addValueChangeListener === "undefined")
// {

View File

@ -149,12 +149,13 @@ function saveSettings(newSettings)
GM_setValue(key, newSettings[key]);
}
}
function onSettingsChange(change)
function onSettingsChange()
{
// for (const key in settings)
// {
// GM_addValueChangeListener(key, change);
// }
console.warn("此功能已弃用.");
}
// if (typeof GM_addValueChangeListener === "undefined")
// {

View File

@ -124,10 +124,11 @@ export function saveSettings(newSettings)
GM_setValue(key, newSettings[key]);
}
}
export function onSettingsChange(change)
export function onSettingsChange()
{
// for (const key in settings)
// {
// GM_addValueChangeListener(key, change);
// }
console.warn("此功能已弃用.");
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -15,9 +15,20 @@
content: "\\E725";
}
.custom-navbar
body
{
--navbar-height: 50px;
}
.bili-header-m>.nav-menu,
.z_top
{
visibility: hidden !important;
height: var(--navbar-height) !important;
}
.custom-navbar
{
--navbar-foreground: black;
--navbar-background: white;
position: absolute;
@ -151,6 +162,7 @@
.custom-navbar a:hover
{
color: inherit;
text-decoration: none;
}
#custom-navbar-home-popup
@ -364,8 +376,8 @@ li.nav-item[report-id='playpage_dynamic'] .i-frame,
.user-info-panel .type
{
padding: 4px;
background: var(--theme-color);
color: var(--foreground-color);
background: var(--theme-color) !important;
color: var(--foreground-color) !important;
margin-bottom: 8px;
}
.user-info-panel .coins,

View File

@ -5,6 +5,8 @@ if (isIframe())
const supportedUrls = [
"/www.bilibili.com",
"/t.bilibili.com",
"/search.bilibili.com",
"/space.bilibili.com",
];
if (!supportedUrls.some(it => document.URL.includes(it)))
{