OverBuff_zhTW

中文化OverBuff

目前为 2016-09-29 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name OverBuff_zhTW
  3. // @namespace OverBuffCht
  4. // @description 中文化OverBuff
  5. // @version 1.1
  6. // @grant none
  7. // ==/UserScript==
  8. $('div.label').each(function () {
  9. if ($(this).html() == 'Eliminations') $(this).html('平均擊殺數');
  10. if ($(this).html() == 'Obj Kills') $(this).html('平均攻防擊殺數');
  11. if ($(this).html() == 'Obj Time') $(this).html('平均攻防時間');
  12. if ($(this).html() == 'Weapon Acc') $(this).html('平均命中率');
  13. if ($(this).html() == 'Damage') $(this).html('平均傷害量');
  14. if ($(this).html() == 'Healing') $(this).html('平均治療量');
  15. if ($(this).html() == 'Critical Hits') $(this).html('平均爆頭率');
  16. if ($(this).html() == 'Env Kills') $(this).html('平均環境擊殺數');
  17. if ($(this).html() == 'Deaths') $(this).html('平均死亡');
  18. if ($(this).html() == 'Off Assists') $(this).html('平均助攻');
  19. if ($(this).html() == 'Def Assists') $(this).html('平均協防');
  20. if ($(this).html() == 'E:D Ratio') $(this).html('死亡擊殺比');
  21. if ($(this).html() == 'Voting Cards') $(this).html('平均得票率');
  22. if ($(this).html() == 'Medals') $(this).html('平均得牌數');
  23. if ($(this).html() == 'Gold Medals') $(this).html('平均金牌數');
  24. if ($(this).html() == 'Silver Medals') $(this).html('平均銀牌數');
  25. if ($(this).html() == 'Bronze Medals') $(this).html('平均銅牌數');
  26. if ($(this).html() == 'On Fire') $(this).html('手感發熱');
  27. if ($(this).html() == 'Time Played') $(this).html('角色遊戲時間');
  28. if ($(this).html() == 'Record') $(this).html('勝負場次');
  29. if ($(this).html() == 'Hero Rank') $(this).html('競技對戰排名');
  30. if ($(this).html() == 'Quick Rank') $(this).html('快速對戰排名');
  31. if ($(this).html() == 'Wins') $(this).html('勝場');
  32. if ($(this).html() == 'Skill Rating') $(this).html('競技天梯分數');
  33. if ($(this).html().indexOf("Hero Score") >= 0) $(this).html($(this).html().replace("Hero Score", "競技對戰分數"));
  34. if ($(this).html().indexOf("Quick Score") >= 0) $(this).html($(this).html().replace("Quick Score", "快速對戰分數"));
  35.  
  36. //肉盾共用
  37. if ($(this).html() == 'Dmg Blocked') $(this).html('平均傷害吸收');
  38. //兄弟G8共用技能描述
  39. if ($(this).html() == 'Dragon Kills') {
  40. $(this).html($(this).parents().eq(3).attr('class').indexOf('genji') > 0 ? "龍一文字平均擊殺數" : "龍魂擊平均擊殺數");
  41. }
  42.  
  43.  
  44. //路西歐
  45. if ($(this).html() == 'Sound Barriers') $(this).html('平均音波屏障施放數');
  46. //禪亞塔
  47. if ($(this).html() == 'Final Blows') $(this).html('平均尾刀數');
  48. if ($(this).html() == 'Trans Healing') $(this).html('平均超凡入聖治療量');
  49. //辛梅塔
  50. if ($(this).html() == 'Portal Uptime') $(this).html('平均傳送器運作時間');
  51. if ($(this).html() == 'Portal Trips') $(this).html('平均傳送數量');
  52. if ($(this).html() == 'Shields Given') $(this).html('平均護盾施放');
  53. if ($(this).html() == 'Photon Kills') $(this).html('平均光子槍擊殺數');
  54. if ($(this).html() == 'Sentry Kills') $(this).html('平均哨戒塔擊殺數');
  55. if ($(this).html() == 'Solo Kills') $(this).html('平均單人擊殺數');
  56.  
  57. //慈悲
  58. if ($(this).html() == 'Resurrects') $(this).html('平均復活人數');
  59. //安娜
  60. if ($(this).html() == 'Scoped Acc') $(this).html('平均狙擊命中率');
  61. if ($(this).html() == 'Enemies Slept') $(this).html('平均睡眠數');
  62. if ($(this).html() == 'Boost Assists') $(this).html('平均奈米強化施放率');
  63. //D.VA
  64. if ($(this).html() == 'Mech Recalls') $(this).html('空降機甲率');
  65. if ($(this).html() == 'Destruct Kills') $(this).html('平均空投擊殺數');
  66. //札莉亞
  67. if ($(this).html() == 'Avg Energy') $(this).html('平均蓄能比');
  68. if ($(this).html() == 'Power Kills') $(this).html('平均能量擊殺');
  69. if ($(this).html() == 'Graviton Kills') $(this).html('平均引力擊殺');
  70. if ($(this).html() == 'Proj Barriers') $(this).html('平均護盾施放');
  71. //攔路豬
  72. if ($(this).html() == 'Self Healing') $(this).html('平均自我治療量');
  73. if ($(this).html() == 'Heroes Hooked') $(this).html('平均鉤中數');
  74. if ($(this).html() == 'Hook Acc') $(this).html('鐵鉤平均命中率');
  75. if ($(this).html() == 'Hog Kills') $(this).html('火力全開平均擊殺數');
  76. //萊茵哈特
  77. if ($(this).html() == 'Charge Kills') $(this).html('衝鋒平均擊殺數');
  78. if ($(this).html() == 'Shatter Kills') $(this).html('地裂擊平均擊殺數');
  79. if ($(this).html() == 'Fire Kills') $(this).html('烈焰擊平均擊殺數');
  80. //溫斯頓
  81. if ($(this).html() == 'Melee Kills') $(this).html('特斯拉砲平均擊殺數');
  82. if ($(this).html() == 'Jump Kills') $(this).html('噴射跳躍平均擊殺數');
  83. if ($(this).html() == 'Rage Kills') $(this).html('野性之怒平均擊殺數');
  84. //小美
  85. if ($(this).html() == 'Enemies Frozen') $(this).html('平均凍結人數');
  86. if ($(this).html() == 'Blizzard Kills') $(this).html('暴風雪平均擊殺數');
  87. //炸彈鼠
  88. if ($(this).html() == 'Enemy Traps') $(this).html('平均陷阱發動數');
  89. if ($(this).html() == 'Tire Kills') $(this).html('地獄飛輪平均擊殺數');
  90. //奪命女
  91. if ($(this).html() == 'Venom Kills') $(this).html('毒氣平均擊殺數');
  92. //半藏
  93. if ($(this).html() == 'Scatter Kills') $(this).html('裂破箭平均擊殺數');
  94.  
  95. //壁壘
  96. if ($(this).html() == 'Tank Kills') $(this).html('坦克模式平均擊殺數');
  97. //托比昂
  98. if ($(this).html() == 'Armor Packs') $(this).html('平均裝甲包提供量');
  99. if ($(this).html() == 'Weapon Kills') $(this).html('平均武器擊殺數');
  100. if ($(this).html() == 'Turret Kills') $(this).html('平均砲塔擊殺數');
  101. if ($(this).html() == 'Molten Kills') $(this).html('爐心超載平均擊殺數');
  102. //法拉
  103. if ($(this).html() == 'Direct Hits') $(this).html('平均直接命中率');
  104. if ($(this).html() == 'Barrage Kills') $(this).html('火箭彈幕平均擊殺數');
  105. //源氏
  106. if ($(this).html() == 'Dmg Reflected') $(this).html('平均反彈傷害');
  107. //死神
  108. if ($(this).html() == 'Souls Gained') $(this).html('平均靈魂回收數');
  109. if ($(this).html() == 'Blossom Kills') $(this).html('死亡綻放平均擊殺數');
  110. //閃光
  111. if ($(this).html() == 'Bombs Stuck') $(this).html('平均脈衝炸彈黏中數');
  112. if ($(this).html() == 'Bomb Kills') $(this).html('脈衝炸彈平均擊殺數');
  113. //76
  114. if ($(this).html() == 'Biotic Fields') $(this).html('生化力廠平均施放數');
  115. if ($(this).html() == 'Helix Kills') $(this).html('旋風火箭平均擊殺數');
  116. if ($(this).html() == 'Visor Kills') $(this).html('戰術鎖定平均擊殺數');
  117. //麥卡利
  118. if ($(this).html() == 'FTH Kills') $(this).html('六連發平均擊殺數');
  119. if ($(this).html() == 'Deadeye Kills') $(this).html('彈無虛發平均擊殺數');
  120. });
  121.  
  122. $('dt').each(function(){
  123. if ($(this).html() == 'Skill Rank') $(this).html('競技技術水平');
  124. if ($(this).html() == 'Skill Rating') $(this).html('競技天梯分數');
  125. if ($(this).html() == 'On Fire') $(this).html('手感發熱');
  126. if ($(this).html() == 'Wins') $(this).html('勝場');
  127. if ($(this).html() == 'Record') $(this).html('勝負紀錄');
  128. if ($(this).html() == 'Win Rate') $(this).html('勝率');
  129. });
  130.