mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
3.5 KiB
JavaScript
1 line
3.5 KiB
JavaScript
!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["video/player/control-background"]=e():o["video/player/control-background"]=e()}(self,(function(){return function(){"use strict";var o,e,t={79:function(o,e,t){t.r(e),e.default='// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require("../../../../../../node_modules/css-loader/dist/runtime/api.js");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ".bilibili-player-video-control-mask {\\n background: transparent !important;\\n}\\n.bilibili-player-video-control .bilibili-player-video-control-bottom {\\n background: rgba(0, 0, 0, var(--video-control-opacity)) !important;\\n margin: 5px 0 0 0 !important;\\n padding: 9px 0 0 !important;\\n height: 30px !important;\\n}\\nbody.player-mode-webfullscreen .bilibili-player-video-control .bilibili-player-video-control-bottom, body.player-fullscreen-fix .bilibili-player-video-control .bilibili-player-video-control-bottom, body.player-full-win .bilibili-player-video-control .bilibili-player-video-control-bottom {\\n margin: -2px 0 0 0 !important;\\n padding: 13px 0 0 !important;\\n height: 45px !important;\\n}\\n\\nbody.video-control-progress-background .bui-track-video-progress .bui-bar-wrap {\\n background: rgba(0, 0, 0, var(--video-control-opacity)) !important;\\n}", ""]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___;\n'},407:function(o){o.exports=coreApis.settings}},n={};function r(o){var e=n[o];if(void 0!==e)return e.exports;var i=n[o]={exports:{}};return t[o](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(o){return Object.getPrototypeOf(o)}:function(o){return o.__proto__},r.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var i=Object.create(null);r.r(i);var a={};o=o||[null,e({}),e([]),e(e)];for(var l=2&n&&t;"object"==typeof l&&!~o.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((function(o){a[o]=function(){return t[o]}}));return a.default=function(){return t},r.d(i,a),i},r.d=function(o,e){for(var t in e)r.o(e,t)&&!r.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},r.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},r.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return e}});var o=coreApis.utils.urls;const e={name:"playerControlBackground",displayName:"播放器控制栏背景色",tags:[componentsTags.video,componentsTags.style],description:{"zh-CN":"给视频播放器控制栏附上半透明的黑色, 代替原来的阴影."},entry:async({metadata:o})=>{const{addComponentListener:e}=await Promise.resolve().then(r.t.bind(r,407,23));e(`${o.name}.includeProgress`,(o=>{document.body.classList.toggle("video-control-progress-background",o)}),!0),e(`${o.name}.opacity`,lodash.debounce((o=>{document.documentElement.style.setProperty("--video-control-opacity",(o/100).toString())}),200),!0)},instantStyles:[{name:"playerControlBackground",style:()=>Promise.resolve().then(r.bind(r,79))}],urlInclude:o.playerUrls,options:{opacity:{displayName:"不透明度(%)",defaultValue:64,slider:{}},includeProgress:{displayName:"包括进度条",defaultValue:!0}},commitHash:"0a2ab779aac2af6f58d15cee16533dd18200bb62"}}(),i=i.component}()})); |