HiAnime Auto 1080p

Automatically sets your Quality & Speed to your desired values, Auto Fullscreen, Auto Pause/Unpause when switching tabs, Auto Unmute, Auto Focus.

< 脚本 HiAnime Auto 1080p 的反馈

评价:好评 - 脚本运行良好

§
发布于:2024-09-29
编辑于:2024-09-29

Also this is a much snappier implimentation

var LastPlayingState = false;
window.addEventListener("focus", () => {
if (LastPlayingState) {
jwplayer().play();
}
});

window.addEventListener("blur", () => {
if (jwplayer().getState() === "paused") {
LastPlayingState = false;
} else {
LastPlayingState = true;
}
jwplayer().pause();
});

§
发布于:2024-09-29

var LastPlayingState = false;
window.addEventListener("focus", () => {
if (LastPlayingState == true) {
jwplayer().play();
}
});

window.addEventListener("blur", () => {
LastPlayingState = jwplayer().getState() == "playing";
jwplayer().pause();
});

Ghoste作者
§
发布于:2024-09-29

this was the first thing i tried actually, the problem is that if you click away from the iframe on the hianime page, it pauses and if you click on it again, it unpauses.

this is why i didnt use it.

发布留言

登录(不可用)以发布留言。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址