FMU Skill Color

Skill color change

  1. // ==UserScript==
  2. // @name FMU Skill Color
  3. // @namespace https://gf.qytechs.cn/users/63572
  4. // @version 1.0.0
  5. // @description Skill color change
  6. // @match *://ultra.trophymanager.com/players*
  7. // @author Jozi B.
  8. // @copyright 2016 - JB
  9. // @require http://code.jquery.com/jquery-latest.min.js
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. $(document).ready(function(){
  14. $('.skill_table td').each(function(){
  15. if($(this).text() <1) {
  16. $(this).css('background-color','transparent');
  17. }
  18. else if($(this).text() >= 1 && $(this).text() <30) {
  19. $(this).css('background-color','#A52728');
  20. }
  21. else if($(this).text() >= 30 && $(this).text() <50) {
  22. $(this).css('background-color','#D0510F');
  23. }
  24. else if($(this).text() >= 50 && $(this).text() <75) {
  25. $(this).css('background-color','#1B6C89');
  26. }
  27. else if($(this).text() >= 75 && $(this).text() <90) {
  28. $(this).css('background-color','#357A21');
  29. }
  30. else if($(this).text() >= 90 && $(this).text() <101) {
  31. $(this).css('background-color','#234f2b');
  32. }
  33. else if($(this).text() >=101) {
  34. $(this).css({'background-color':'#364139','color':'#faec74'});
  35. }
  36. });
  37. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址