Kissanime (Hserver) as Default or any else server

Automatically select Hserver as the default (change hserver to any server you want)

< 脚本 Kissanime (Hserver) as Default or any else server 的反馈

评价:差评 - 脚本失效或无法使用

§
发布于:2023-10-27

Your script is broken, makes the page reload infinitely, also as nor Hserver nor Default works for me, I've set it to Oserver. This may be due to an issue with how the Kissanime website handles changes to the server selection. To address this problem, you can use a different approach that avoids triggering the change event. Here's how I fixed it for ya, simply add a delay to it:

(function() {
    'use strict';

    // Delay the script execution to ensure that the page is fully loaded
    setTimeout(function() {
        // Get the select element with id "selectServer"
        var selectServer = document.getElementById("selectServer");

        if (selectServer) {
            // Set the hserver option as the selected option
            for (var i = 0; i < selectServer.options.length; i++) {
                if (selectServer.options[i].getAttribute("sv") === "oserver") {
                    selectServer.selectedIndex = i;
                    break;
                }
            }
        }
    }, 1000); // Adjust the delay if needed
})();

发布留言

登录以发布留言。