mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
24 lines
524 B
JavaScript
24 lines
524 B
JavaScript
if (typeof isEmbeddedPlayer !== "undefined" && isEmbeddedPlayer())
|
|
{
|
|
return;
|
|
}
|
|
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); } |