DC - Digimobile

Allow player to write digicode on DreadCast

目前为 2019-11-06 提交的版本。查看 最新版本

// ==UserScript==
// @name         DC - Digimobile
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Allow player to write digicode on DreadCast
// @author       Ajira
// @match        https://www.dreadcast.net/Main
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    document.getElementById("zone_lightBox").addEventListener('DOMNodeInserted', function() {
        var digiInput = document.getElementById("lb_textinput_digicode");
        if (digiInput == null) { return; }
        var digiForm = digiInput.parentNode.parentNode;
        if (digiForm == null) { return; }
        if (digiForm.getAttribute("test") == "test") { return; }
        digiInput.setAttribute("style", "border:1px solid red;");
        digiForm.setAttribute("test", "test");
        document.getElementById("zone_lightBox").appendChild(digiForm.cloneNode(true));
    }, false);
})();

QingJ © 2025

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