FMU Skill Color

Skill color change

目前為 2016-09-02 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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'});
            }
        });
    });