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的回應

提問/評論

§
發表於:2025-03-14

possible to add support for animekai? it uses megaup.cc and a different player id, '#player' instead of '#megacloud-player'

§
發表於:2025-03-21


function waitForElement(selector1, selector2, callback) {
const observer = new MutationObserver(() => {
const element1 = document.querySelector(selector1);
const element2 = document.querySelector(selector2);
//
// Check if either element exists
if (element1 || element2) {
observer.disconnect();
callback(element1 || element2); // Pass the first found element
}
});

observer.observe(document.body, { childList: true, subtree: true });
}

// Call waitForElement with both selectors
waitForElement('#megacloud-player', '#player.jwplayer', () => {
const player = jwplayer();
const qualityMap = { "1080": 1, "720": 2, "360": 3 };


managed to add support myself with the help of ai 😅, this is all the code i changed as well as adding //@match https://megaup.cc/*

發表回覆

登入以回復

QingJ © 2025

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