Bilibili-Evolved/style/blur-video-control/blur-video-control.js
2018-12-23 18:18:06 +08:00

21 lines
726 B
JavaScript

(() =>
{
return (_, resources) =>
{
(Observer.childListSubtree || Observer.subtree)("#bofqi", () =>
{
SpinQuery.count(
() => $(".bui-slider .bui-track.bui-track-video-progress,.bilibili-player-video-control-bottom"),
2,
containers =>
{
if (!containers.hasClass("video-control-blur-container"))
{
containers.addClass("video-control-blur-container");
containers.prepend(`<div class="video-control-blur-layer"></div>`);
}
});
});
resources.applyStyle("blurVideoControlStyle");
};
})();