mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
13 lines
378 B
JavaScript
13 lines
378 B
JavaScript
if (typeof isEmbeddedPlayer !== "undefined" && isEmbeddedPlayer())
|
|
{
|
|
return;
|
|
}
|
|
Observer.videoChange(async () =>
|
|
{
|
|
const danmakuBox = await SpinQuery.select(".bui-collapse-wrap");
|
|
if (danmakuBox && danmakuBox.classList.contains("bui-collapse-wrap-folded"))
|
|
{
|
|
const button = await SpinQuery.select(".bui-collapse-header");
|
|
button.click();
|
|
}
|
|
}); |