mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
33 lines
956 B
JavaScript
33 lines
956 B
JavaScript
(() =>
|
|
{
|
|
return (settings, resources) =>
|
|
{
|
|
if (settings.useDarkStyle)
|
|
{
|
|
resources.applyStyle("scrollbarStyle");
|
|
SpinQuery.any(
|
|
() => $(".custom-scrollbar"),
|
|
it => it.removeClass("custom-scrollbar")
|
|
);
|
|
if ($("#banner_link").length === 0 ||
|
|
$("#banner_link").length > 0 &&
|
|
settings.overrideNavBar &&
|
|
!settings.showBanner)
|
|
{
|
|
resources.applyImportantStyle("darkStyleNavBar");
|
|
}
|
|
resources.applyStyle("darkStyle");
|
|
resources.applyImportantStyle("darkStyleImportant");
|
|
}
|
|
else
|
|
{
|
|
$("#bilibili-scrollbar-style,#bilibili-new-style-dark-nav-bar,#bilibili-new-style-dark,#bilibili-new-style-dark-important")
|
|
.remove();
|
|
}
|
|
|
|
return {
|
|
ajaxReload: false
|
|
};
|
|
};
|
|
})();
|