Bilibili-Evolved/video/expand-danmaku.js
2018-10-15 20:55:31 +08:00

21 lines
501 B
JavaScript

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