FMU Skill Color

Skill color change

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name       FMU Skill Color
// @namespace  https://greasyfork.org/users/63572
// @version    1.0.0
// @description  Skill color change
// @match      *://ultra.trophymanager.com/players*
// @author     Jozi B.
// @copyright  2016 - JB
// @require http://code.jquery.com/jquery-latest.min.js
// @run-at      document-start
// ==/UserScript==

$(document).ready(function(){
        $('.skill_table td').each(function(){
            if($(this).text() <1) {
                $(this).css('background-color','transparent');
            }
            else if($(this).text() >= 1 && $(this).text() <30) {
                $(this).css('background-color','#A52728');
            }
            else if($(this).text() >= 30 && $(this).text() <50) {
                $(this).css('background-color','#D0510F');
            }
            else if($(this).text() >= 50 && $(this).text() <75) {
                $(this).css('background-color','#1B6C89');
            }
            else if($(this).text() >= 75 && $(this).text() <90) {
                $(this).css('background-color','#357A21');
            }
            else if($(this).text() >= 90 && $(this).text() <101) {
                $(this).css('background-color','#234f2b');
            }
            else if($(this).text() >=101) {
                $(this).css({'background-color':'#364139','color':'#faec74'});
            }
        });
    });