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
})();

發表回覆

登入以回覆