Bilibili-Evolved/video/expand-danmaku.js
2019-02-16 19:33:27 +08:00

20 lines
441 B
JavaScript

const expand = () =>
{
SpinQuery.any(
() => $(".bui-collapse-header"),
button =>
{
if (parseInt($(".bui-collapse-body").css("height")) === 0 &&
$(".bui-collapse-arrow-text").text() === "展开")
{
button.click();
}
}
);
};
if (Observer.videoChange)
{
Observer.videoChange(expand);
}
else
{ Observer.childList("#bofqi", expand); }