OverBuff_zhTW

中文化OverBuff

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        OverBuff_zhTW
// @namespace   OverBuffCht
// @description 中文化OverBuff
// @version     1.1
// @grant       none
// ==/UserScript==
$('div.label').each(function () {
  if ($(this).html() == 'Eliminations') $(this).html('平均擊殺數');
  if ($(this).html() == 'Obj Kills') $(this).html('平均攻防擊殺數');
  if ($(this).html() == 'Obj Time') $(this).html('平均攻防時間');
  if ($(this).html() == 'Weapon Acc') $(this).html('平均命中率');
  if ($(this).html() == 'Damage') $(this).html('平均傷害量');
  if ($(this).html() == 'Healing') $(this).html('平均治療量');
  if ($(this).html() == 'Critical Hits') $(this).html('平均爆頭率');
  if ($(this).html() == 'Env Kills') $(this).html('平均環境擊殺數');
  if ($(this).html() == 'Deaths') $(this).html('平均死亡');
  if ($(this).html() == 'Off Assists') $(this).html('平均助攻');
  if ($(this).html() == 'Def Assists') $(this).html('平均協防');
  if ($(this).html() == 'E:D Ratio') $(this).html('死亡擊殺比');
  if ($(this).html() == 'Voting Cards') $(this).html('平均得票率');
  if ($(this).html() == 'Medals') $(this).html('平均得牌數');
  if ($(this).html() == 'Gold Medals') $(this).html('平均金牌數');
  if ($(this).html() == 'Silver Medals') $(this).html('平均銀牌數');
  if ($(this).html() == 'Bronze Medals') $(this).html('平均銅牌數');
  if ($(this).html() == 'On Fire') $(this).html('手感發熱');
  if ($(this).html() == 'Time Played') $(this).html('角色遊戲時間');
  if ($(this).html() == 'Record') $(this).html('勝負場次');
  if ($(this).html() == 'Hero Rank') $(this).html('競技對戰排名');
  if ($(this).html() == 'Quick Rank') $(this).html('快速對戰排名');
  if ($(this).html() == 'Wins') $(this).html('勝場');
  if ($(this).html() == 'Skill Rating') $(this).html('競技天梯分數');
  
  if ($(this).html().indexOf("Hero Score") >= 0) $(this).html($(this).html().replace("Hero Score", "競技對戰分數"));
  if ($(this).html().indexOf("Quick Score") >= 0) $(this).html($(this).html().replace("Quick Score", "快速對戰分數"));
  

  //肉盾共用
  if ($(this).html() == 'Dmg Blocked') $(this).html('平均傷害吸收');
  //兄弟G8共用技能描述
  if ($(this).html() == 'Dragon Kills') {
    $(this).html($(this).parents().eq(3).attr('class').indexOf('genji') > 0 ? "龍一文字平均擊殺數" : "龍魂擊平均擊殺數");
  }


  //路西歐
  if ($(this).html() == 'Sound Barriers') $(this).html('平均音波屏障施放數');
  
  //禪亞塔
  if ($(this).html() == 'Final Blows') $(this).html('平均尾刀數');
  if ($(this).html() == 'Trans Healing') $(this).html('平均超凡入聖治療量');
  
  //辛梅塔
  if ($(this).html() == 'Portal Uptime') $(this).html('平均傳送器運作時間');
  if ($(this).html() == 'Portal Trips') $(this).html('平均傳送數量');
  if ($(this).html() == 'Shields Given') $(this).html('平均護盾施放');
  if ($(this).html() == 'Photon Kills') $(this).html('平均光子槍擊殺數');
  if ($(this).html() == 'Sentry Kills') $(this).html('平均哨戒塔擊殺數');
  if ($(this).html() == 'Solo Kills') $(this).html('平均單人擊殺數');

  //慈悲
  if ($(this).html() == 'Resurrects') $(this).html('平均復活人數');
  
  //安娜
  if ($(this).html() == 'Scoped Acc') $(this).html('平均狙擊命中率');
  if ($(this).html() == 'Enemies Slept') $(this).html('平均睡眠數');
  if ($(this).html() == 'Boost Assists') $(this).html('平均奈米強化施放率');
  
  //D.VA
  if ($(this).html() == 'Mech Recalls') $(this).html('空降機甲率');
  if ($(this).html() == 'Destruct Kills') $(this).html('平均空投擊殺數');
  
  //札莉亞
  if ($(this).html() == 'Avg Energy') $(this).html('平均蓄能比');
  if ($(this).html() == 'Power Kills') $(this).html('平均能量擊殺');
  if ($(this).html() == 'Graviton Kills') $(this).html('平均引力擊殺');
  if ($(this).html() == 'Proj Barriers') $(this).html('平均護盾施放');
  
  //攔路豬
  if ($(this).html() == 'Self Healing') $(this).html('平均自我治療量');
  if ($(this).html() == 'Heroes Hooked') $(this).html('平均鉤中數');
  if ($(this).html() == 'Hook Acc') $(this).html('鐵鉤平均命中率');
  if ($(this).html() == 'Hog Kills') $(this).html('火力全開平均擊殺數');
  
  //萊茵哈特
  if ($(this).html() == 'Charge Kills') $(this).html('衝鋒平均擊殺數');
  if ($(this).html() == 'Shatter Kills') $(this).html('地裂擊平均擊殺數');
  if ($(this).html() == 'Fire Kills') $(this).html('烈焰擊平均擊殺數');
  
  //溫斯頓
  if ($(this).html() == 'Melee Kills') $(this).html('特斯拉砲平均擊殺數');
  if ($(this).html() == 'Jump Kills') $(this).html('噴射跳躍平均擊殺數');
  if ($(this).html() == 'Rage Kills') $(this).html('野性之怒平均擊殺數');
  
  //小美
  if ($(this).html() == 'Enemies Frozen') $(this).html('平均凍結人數');
  if ($(this).html() == 'Blizzard Kills') $(this).html('暴風雪平均擊殺數');
  
  //炸彈鼠
  if ($(this).html() == 'Enemy Traps') $(this).html('平均陷阱發動數');
  if ($(this).html() == 'Tire Kills') $(this).html('地獄飛輪平均擊殺數');
  
  //奪命女
  if ($(this).html() == 'Venom Kills') $(this).html('毒氣平均擊殺數');
  
  //半藏
  if ($(this).html() == 'Scatter Kills') $(this).html('裂破箭平均擊殺數');

  //壁壘
  if ($(this).html() == 'Tank Kills') $(this).html('坦克模式平均擊殺數');
  
  //托比昂
  if ($(this).html() == 'Armor Packs') $(this).html('平均裝甲包提供量');
  if ($(this).html() == 'Weapon Kills') $(this).html('平均武器擊殺數');
  if ($(this).html() == 'Turret Kills') $(this).html('平均砲塔擊殺數');
  if ($(this).html() == 'Molten Kills') $(this).html('爐心超載平均擊殺數');
  
  //法拉
  if ($(this).html() == 'Direct Hits') $(this).html('平均直接命中率');
  if ($(this).html() == 'Barrage Kills') $(this).html('火箭彈幕平均擊殺數');
  
  //源氏
  if ($(this).html() == 'Dmg Reflected') $(this).html('平均反彈傷害');
  
  //死神  
  if ($(this).html() == 'Souls Gained') $(this).html('平均靈魂回收數');
  if ($(this).html() == 'Blossom Kills') $(this).html('死亡綻放平均擊殺數');
  
  //閃光
  if ($(this).html() == 'Bombs Stuck') $(this).html('平均脈衝炸彈黏中數');
  if ($(this).html() == 'Bomb Kills') $(this).html('脈衝炸彈平均擊殺數');
  
  //76
  if ($(this).html() == 'Biotic Fields') $(this).html('生化力廠平均施放數');
  if ($(this).html() == 'Helix Kills') $(this).html('旋風火箭平均擊殺數');
  if ($(this).html() == 'Visor Kills') $(this).html('戰術鎖定平均擊殺數');
  
  //麥卡利
  if ($(this).html() == 'FTH Kills') $(this).html('六連發平均擊殺數');
  if ($(this).html() == 'Deadeye Kills') $(this).html('彈無虛發平均擊殺數');
});

$('dt').each(function(){
  if ($(this).html() == 'Skill Rank') $(this).html('競技技術水平');
  if ($(this).html() == 'Skill Rating') $(this).html('競技天梯分數');
  if ($(this).html() == 'On Fire') $(this).html('手感發熱');
  if ($(this).html() == 'Wins') $(this).html('勝場');
  if ($(this).html() == 'Record') $(this).html('勝負紀錄');
  if ($(this).html() == 'Win Rate') $(this).html('勝率');
  
});