Bilibili-Evolved/video/auto-play.js
2019-01-24 11:55:36 +08:00

17 lines
389 B
JavaScript

(() =>
{
return (settings, resources) =>
{
SpinQuery.condition(
() =>
{
if (document.querySelector(".bilibili-player-video"))
{
return document.querySelector("video");
}
},
it => it && it.paused === true,
it => it.play(),
);
};
})();