Bilibili-Evolved/video/custom-control-background/custom-control-background.js
2018-11-03 23:26:36 +08:00

22 lines
502 B
JavaScript

(() =>
{
return (settings, resources) =>
{
if (settings.customControlBackgroundOpacity > 0)
{
resources.applyStyle("customControlBackgroundStyle");
if (!settings.touchVideoPlayer)
{
resources.applyImportantStyleFromText(`
<style id="control-background-non-touch">
.bilibili-player-video-control-bottom
{
margin: 0 !important;
padding: 7px 0 0 !important;
}
</style>
`);
}
}
};
})();