mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
654 B
JavaScript
1 line
654 B
JavaScript
(()=>{return(t,o)=>{addSettingsListener("customControlBackgroundOpacity",t=>{document.documentElement.style.setProperty("--custom-control-background-opacity",t)},true);const n=()=>{o.applyStyle("customControlBackgroundStyle");if(!t.touchVideoPlayer){o.applyImportantStyleFromText(`\n<style id="control-background-non-touch">\n .bilibili-player-video-control-bottom\n {\n margin: 7px 0 0 0 !important;\n padding: 8px 0 0 !important;\n }\n</style>\n`)}};n();return{reload:n,unload:()=>{o.removeStyle("customControlBackgroundStyle");const t=document.getElementById("control-background-non-touch");t&&t.remove()}}}})(); |