NexusClashReadableInfusion

Makes infusion numbers readable

スクリプトをインストールするには、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           NexusClashReadableInfusion
// @namespace      http://userscripts.org/users/125692
// @description    Makes infusion numbers readable
// @include        http://nexusclash.com/modules.php?name=Game*
// @include        http://www.nexusclash.com/modules.php?name=Game*
// @exclude        http://nexusclash.com/modules.php?name=Game&op=disconnect
// @exclude        http://www.nexusclash.com/modules.php?name=Game&op=disconnect
// @version 1.0
// ==/UserScript==
// 1.0  --  altered infusion text to .75em as it was too small.
(function() {
//<div id="Map">
var mapdiv;
if ((document.getElementById('Map'))){
mapdiv=document.getElementById('Map');
var fonttags=mapdiv.getElementsByTagName('font');
var fonttagslength=fonttags.length;
for(i=0;i<fonttagslength;i++){
        if (fonttags[i].parentNode.tagName=="TD"){
            fonttags[i].parentNode.align='left';
            fonttags[i].parentNode.setAttribute('valign','top');
        }
        else if(fonttags[i].parentNode.tagName=="CENTER"){
            fonttags[i].parentNode.parentNode.setAttribute('align','left');
            fonttags[i].parentNode.parentNode.setAttribute('valign','top');
fonttags[i].parentNode.parentNode.innerHTML=fonttags[i].parentNode.parentNode.innerHTML.replace(/<center>/,"").replace(/<\/center>/,"");
        }
}

mapdiv.innerHTML=mapdiv.innerHTML.replace(/<font color="(#[ABCDEF0123456789]{6})">(\(\d+\))<\/font>/g,"<span style='background-color:white;vertical-align:text-top;font-size:.75em;font-weight:900;color:$1'>$2<\span>");

} 

//EOF
})();