mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
32 lines
889 B
JavaScript
32 lines
889 B
JavaScript
SpinQuery.any(
|
|
() => $(".custom-scrollbar"),
|
|
it => it.removeClass("custom-scrollbar")
|
|
);
|
|
const load = () =>
|
|
{
|
|
resources.applyStyle("scrollbarStyle");
|
|
SpinQuery.any(
|
|
() => $(".custom-scrollbar"),
|
|
it => it.removeClass("custom-scrollbar")
|
|
);
|
|
if (!settings.useNewStyle && ($("#banner_link").length === 0 ||
|
|
$("#banner_link").length > 0 &&
|
|
settings.overrideNavBar &&
|
|
settings.hideBanner))
|
|
{
|
|
resources.applyImportantStyle("darkStyleNavBar");
|
|
}
|
|
resources.applyStyle("darkStyle");
|
|
resources.applyImportantStyle("darkStyleImportant");
|
|
};
|
|
load();
|
|
export default {
|
|
reload: load,
|
|
unload: () =>
|
|
{
|
|
resources.removeStyle("scrollbarStyle");
|
|
resources.removeStyle("darkStyleNavBar");
|
|
resources.removeStyle("darkStyle");
|
|
resources.removeStyle("darkStyleImportant");
|
|
},
|
|
}; |