mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
21 lines
618 B
JavaScript
21 lines
618 B
JavaScript
const blur = () =>
|
|
{
|
|
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(/*html*/`<div class="video-control-blur-layer"></div>`);
|
|
}
|
|
});
|
|
};
|
|
if (Observer.videoChange)
|
|
{
|
|
Observer.videoChange(blur);
|
|
}
|
|
else
|
|
{ Observer.childList("#bofqi", blur); }
|
|
resources.applyStyle("blurVideoControlStyle"); |