DH3 Brighter Kills

Just makes the "xx kills" text in monster log actually legible.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         DH3 Brighter Kills
// @namespace    com.anwinity.dh3
// @version      1.0.1
// @description  Just makes the "xx kills" text in monster log actually legible.
// @author       Anwinity
// @match        dh3.diamondhunt.co
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    $(function() {
        const originalClicksItem = window.clicksItem;
        window.clicksItem = function(a) {
            originalClicksItem.apply(this, arguments);
            if(a=="combatLog") {
                let calls = 40;
                function waitUntilVisible() {
                    calls--;
                    let spans = $("#combat-combatLog-section table > tbody > tr:first-child > td:first-child span");
                    if(spans.length>0) {
                        spans.css("color", "silver");
                        setTimeout(()=>$("#combat-combatLog-section table > tbody > tr:first-child > td:first-child span").css("color", "silver"), 200);
                        setTimeout(()=>$("#combat-combatLog-section table > tbody > tr:first-child > td:first-child span").css("color", "silver"), 500);
                        setTimeout(()=>$("#combat-combatLog-section table > tbody > tr:first-child > td:first-child span").css("color", "silver"), 1000);
                    }
                    else {
                        if(calls>0) {
                            setTimeout(waitUntilVisible, 50);
                        }
                    }
                }
                waitUntilVisible();
            }
        }
    });
})();