Bilibili-Evolved/video/expand-danmaku.js
2019-01-26 12:17:21 +08:00

21 lines
503 B
JavaScript

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