Bilibili-Evolved/style/dark-styles.js
2018-08-21 21:52:44 +08:00

17 lines
374 B
JavaScript

(() =>
{
return (settings, resources) =>
{
if (settings.useNewStyle)
{
for (const i of Array.from({ length: 2 }, (_, c) => c + 1))
{
resources.applyStyle(`darkStyleSlice${i}`, `bilibili-new-style-dark-slice-${i}`);
}
}
return {
ajaxReload: false
};
};
})();