Greasy Fork is available in English.

DC - Digimobile

Allow player to write digicode on DreadCast

2019/11/06のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         DC - Digimobile
// @namespace    http://tampermonkey.net/
// @version      0.2
// @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");
        var digiBox = digiForm.parentNode.parentNode;
        digiBox.appendChild(digiForm);
    }, false);
})();