Recyclex / GBF Co-op Autotranslation Kai Ni

// ==UserScript==
// @name         GBF Co-op Autotranslation Kai Ni
// @version      20210508.1
// @description  Translates co-op room titles into English.
// @match        *://game.granbluefantasy.jp/*
// @match        *://gbf.game.mbga.jp/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @downloadURL  https://openuserjs.org/install/Recyclex/GBF_Co-op_Autotranslation_Kai_Ni.user.js
// @updateURL    https://openuserjs.org/install/Recyclex/GBF_Co-op_Autotranslation_Kai_Ni.user.js
// @license      MIT
// ==/UserScript==

(function() {
    "use strict";

    // Based on /u/finis_caelorum's Co-op Lobby Phrasebook:
    // https://www.reddit.com/r/Granblue_en/comments/6nucg3/coop_lobby_phrasebook/
    // Original code by /u/codensite
    // https://www.reddit.com/r/Granblue_en/comments/74cpb4/coop_autotranslation_extension/
    let translations = [

        ["グラブル", "GBF"],

        ["NGA", ""],
        ["武漢", "Wuhan"],
        ["火神山", "Wuhan"],
        ["肺炎", "Pneumonia"],
        ["習近平", "XiJinping"],
        ["習維尼", "Xinnie the Pooh"],
        ["譚德塞", "Tedros Adhanom"],
        ["肛門", "Anus"],
        ["文化大革命", "CulturalRevolution"],
        ["六四天安門", "64Tiananmen"],
        ["64天安門", "64Tiananmen"],
        ["天安門", "Tiananmen"],
        ["光復香港", "Liberate HK"],
        ["時代革命", "Revolution Now"],
        ["你妈死了", "nmsl"],
        ["台獨", "nmsl"],
        ["台巴子", "nmsl"],
        ["蛙蛙", "nmsl"],
        ["野狗", "nmsl"],
        ["中国人", "Chink"],
        ["中國人", "Chink"],
        ["中国", "Chink"],
        ["中國", "Chink"],
        ["大陸人", "Chink"],
        ["大陸", "Chink"],
        ["遼寧", "nmsl"],
        ["呆灣", "nmsl"],
        ["兩棲", "nmsl"],
        ["尼媽", "nmsl"],
        ["倪哥", "nmsl"],
        ["台蛙", "nmsl"],
        ["口交", "nmsl"],
        ["蛙", "nmsl"],
        ["台", "nmsl"],
        ["逼", "nmsl"],
        ["蔡", "nmsl"],
        ["媽", "nmsl"],
        ["省", "nmsl"],
        ["Errrr", "nmsl"],
        ["errrr", "nmsl"],
        ["Errr", "nmsl"],
        ["errr", "nmsl"],
        ["Err", "nmsl"],
        ["err", "nmsl"],
        ["水平", "nmsl"],
        ["質量", "nmsl"],
        ["口罩", "nmsl"],
        ["支畜", "Chink"],
        ["くまのプーさん", "Winnie the Pooh"],
        ["ウイルス", "Virus"],
        ["支那", "Chink"],
        ["出で行け", "GetOut"],
        ["出て行け", "GetOut"],

        // Some early phrases to catch some stuffs
        [" ", " "],
        ["ハード", "Hard"],
        ["ノーマル", "Normal"],
        ["普通", "Normal"],
        ["通常", "Normal"],
        ["オセロ", "Othello"], // Are you playing the right game here?
        ["本戦", "Finals"],
        ["古戦場", "GuildWar"],
        ["古戰場", "GuildWar"],
        ["古戦", "GuildWar"],
        ["古戰", "GuildWar"],
        ["クエスト", "Quest"],
        ["やる気のある", "Motivated"],
        ["名言集", "PopularQuotes"],
        ["名言", "PopularQuotes"],
        ["前回", "LastTime"],
        ["分速", "DPS"],
        ["全滅", "AllWipe"],
        ["フリーラン", "FreeRun"],
        ["フルオート", "FullAuto"],
        ["フルオ", "FullAuto"],
        ["自分", "Self"],
        ["ペース", "Pace"],
        ["プレイ", "Play"],
        ["誰か手伝ってくれませんか", "AnyonePleaseHelp"],
        ["誰か手伝って", "AnyonePleaseHelp"],
        ["勧誘", "Recruiting"],
        ["助っ人", "Help"],
        ["上位", "High"],
        ["フレンド", "Friend"],
        ["フレさん", "Friend"],
        ["無問題", "NoProb"],
        ["失敗", "Failure"],
        ["敗北", "Failure"],
        ["敗", "Lose"],
        ["読んでください", "PleaseRead"],
        ["維持", "Maintain"],
        ["自信のある", "Confident"],
        ["奥義", "Ougi"],
        ["不問", "NoQuestions"],
        ["質問", "Questions"],
        ["大丈夫", "Alright"],
        ["友人", "Friend"],
        ["概要", "Summary"],
        ["あまりわかってません", "NotExperienced"],
        ["あまり", "Not"],
        ["エレメント", "Stone"],
        ["エレ", "Stone"],
        ["現在", "Now"],
        ["童貞", "Virgin"],
        ["アクティブ", "Active"],
        ["本体", "Body"],
        ["高級鞄", "SSRBuncle"],
        ["鞄", "Buncle"],
        ["ディスコード", "Discord"],
        ["サーバー", "Server"],
        ["四象降臨", "RiseOfTheBeasts"],
        ["4象降臨", "RiseOfTheBeasts"],
        ["タワー", "Tower"],
        ["令和", "Reiwa(era)"],
        ["鰹豪", "Kengonito"],
        ["カツオ剣豪", "Kengonito"],
        ["その他", "Etc."],
        ["シリーズ", "Series"],
        ["バレクラ", "V.Clarirrse"],
        ["バレ", "V.Clarirrse"],
        ["場効果", "FieldEffect"],
        ["効果", "Effect"],
        ["お花摘み", "FlowerPicking"],
        ["十天衆", "Eternals"],
        ["十天", "Eternals"],
        ["回収", "Recovery"],
        ["全員", "Everyone"],
        ["メンバー", "Member"],
        ["固定", "Regular"],
        ["ホスト", "Host"],
        ["ハデス", "Hades"],
        ["名様", "Person(s)"],
        ["ゆるりと", "Slow"],
        ["優先", "Priority"],
        ["真夏", "Midsummer"],
        ["パンデモニウム", "Pandemonium"],
        ["チャンス", "Chance"],
        ["ヒヒ", "Gold"],
        ["ベリアル", "Belial"],
        ["無差別級", "Openweight"],
        ["人生相談", "LifeCounseling"],
        ["人生", "Life"],
        ["相談", "Counseling"],
        ["カオス", "Chaos"],
        ["トーク", "Talk"],
        ["男子", "Guys"],
        ["女子", "Girls"],
        ["トーメンタ", "Tormentor"],
        ["トーメ", "Tormentor"],
        ["トメ", "Tormentor"],
        ["ミッション", "Mission"],
        ["退場", "Leave"],

        ["共闘", "Co-op"],
        ["デイリー", "Daily"],
        ["でいりー", "Daily"],
        ["日課", "Daily"],
        ["毎日", "Daily"],
        ["ランキング", "Rank"],
        ["ランク帯", "Rank"],
        ["ランク", "Rank"],
        ["ラン", "Rank"],

        ["要職", "Need"],
        ["必要なら", "If Necessary"],
        ["必要", "Required"],
        ["要", "Require"],
        ["欲しい", "Wanted"],
        ["ほしい", "Wanted"],
        ["火力", "Carry"],
        ["強者", "Carry"],
        ["戦力", "Carry"],
        ["戰力", "Carry"],
        ["キャリー", "Carry"],
        ["ワンパン禁止", "NoWanpan"],
        ["ワンパン", "Wanpan"],
        ["寄生", "Leech"],
        ["人から開始", "players before starting"],
        ["人から", "players before starting"],
        ["数人いたら開始", "Many players before starting"],
        ["数人から", "Many players before starting"],
        ["開始", "Start"],
        ["始め", "Start"],
        ["始", "Start"],
        ["熟練者", "Experienced"],
        ["熟練", "Experienced"],
        ["經驗者", "Experienced"],
        ["經驗", "Experience"],
        ["経験者", "Experienced"],
        ["経験", "Experience"],
        ["行動理解者", "Experienced"],
        ["行動理解", "Experienced"],
        ["理解者", "Experienced"],
        ["自信者", "Experienced"],
        ["慣れた方", "Experienced"],
        ["慣れた人", "Experienced"],
        ["強い人", "StrongPlayer"],
        ["強い方", "StrongPlayer"],
        ["強くない", "NotStrong"],
        ["猛者", "StrongPlayer"],
        ["不慣れ", "Inexperienced"],
        ["不慣", "Inexperienced"],
        ["慣れてる", "Experienced"],
        ["慣れてません", "Inexperienced"],
        ["初心者", "Newbie"],
        ["初心", "Newbie"],
        ["慣れ", "Experienced"],
        ["ザコ", "Weak"],
        ["スタート", "Start"],
        ["出発", "Start"],
        ["程", "Start"],
        ["キック", "Kick"],
        ["蹴り", "Kick"],
        ["承認", "Confirm"],
        ["認証", "Confirm"],
        ["オート", "Auto"],
        ["最後", "Last"],
        ["枠", "Spot"],
        ["レベル", "Level"],
        ["無料", "Free"],
        ["レイド", "Raid"],
        ["ごはん中", "Eating"],

        ["裁考", "VohuManah"],
        ["ゼノウォフマナフ", "XenoVohuManah"],
        ["ゼノウォフ", "XenoVohuManah"],
        ["ウォフマナフ", "VohuManah"],
        ["ウォフ", "VohuManah"],
        ["裁考の水晶", "JudgeCrystal"],
        ["灼滅", "Ifrit"],
        ["ゼノイフリート", "XenoIfrit"],
        ["ゼノイフ", "XenoIfrit"],
        ["イフリート", "Ifrit"],
        ["イフ", "Ifrit"],
        ["灼滅の焔角", "InfernalGarnet"],
        ["ゼノコロウ", "XenoCorow"],
        ["ゼノコロゥ", "XenoCorow"],
        ["ゼノコロ", "XenoCorow"],
        ["妃光", "Corow"],
        ["コロウ", "Corow"],
        ["コロゥ", "Corow"],
        ["妃光の水晶", "HaloQuartz"],
        ["氷獄", "Cocytus"],
        ["ゼノコキュートス", "XenoCocytus"],
        ["ゼノコキュ", "XenoCocytus"],
        ["コキュートス", "Cocytus"],
        ["コキュ", "Cocy"],
        ["氷獄の結晶", "FrozenPrism"],
        ["人馬", "Sagi"],
        ["ゼノサジタリウス", "XenoSagi"],
        ["ゼノサジ", "XenoSagi"],
        ["サジタリウス", "Sagittarius"],
        ["サジ", "Sagi"],
        ["人馬の円盤", "Horseman'sPlate"],
        ["円盤", "Horseman'sPlate"],
        ["幻魔", "Diablo"],
        ["ゼノディアボロス", "XenoDiablo"],
        ["ゼノディア", "XenoDiablo"],
        ["ディアボロス", "Diablo"],
        ["ディア", "Diablo"],
        ["幻魔の破片", "DemonJewel"],
        ["終焉の刻", "Astaroth"],
        ["終焉", "Astaroth"],
        ["アスタロト", "Astaroth"],
        ["黒紫獣の刻", "ThroesOfDarkSteel"],
        ["黒紫獣", "ThroesOfDarkSteel"],


        ["ティヤマト", "Tiamat"],
        ["ティアマト", "Tiamat"],
        ["ティア", "Tia"],
        ["テイア", "Tia"],
        ["エア", "Ayr"],
        ["コロッサス", "Colossus"],
        ["コロサス", "Colossus"],
        ["コロ", "Colo"],
        ["リヴァイアサン", "Leviathan"],
        ["リヴァイア", "Leviathan"],
        ["リバァイアサン", "Leviathan"],
        ["リヴァイ", "Levi"],
        ["リヴァ", "Levi"],
        ["鰻", "Levi"],
        ["うなぎ", "Levi"],
        ["ウナ", "Levi"],
        ["ユグドラシル", "Yggdrasil"],
        ["ユグドラ", "Yggdrasil"],
        ["ゆぐゆぐ", "Yuguyugu"],
        ["ゆぐ", "Yugu"],
        ["ユグ", "Yugu"],
        ["シュヴァリエ", "Chevalier"], //correct
        ["シュバリエ", "Chevalier"],
        ["シュヴァ", "Cheva"], //correct abbreviation
        ["シュヴ", "Chev"],
        ["シュバ", "Cheva"],
        ["セレスト", "Celeste"],
        ["セレクト", "Celeste"],
        ["セレ", "Celeste"],
        ["ボート", "Celeste"],
        ["船", "Celeste"],
        ["マグナ", "Magna"],
        ["マグ", "Magna"],
        ["まぐな", "Magna"],
        ["まぐ", "Magna"],
        ["方陣", "Magna"],

        ["邂逅、黒銀の翼", "Proto-Baha"],
        ["黒銀の翼", "Proto-Baha"],
        ["黑銀の翼", "Proto-Baha"],
        ["邂逅、黒銀", "Proto-Baha"],
        ["邂逅 黒銀", "Proto-Baha"],
        ["邂逅黒銀", "Proto-Baha"],
        ["邂逅黑", "Proto-Baha"],
        ["邂逅", "Proto-Baha"],
        ["黒銀", "Proto-Baha"],

        ["弱ばはむと", "Proto-Baha"],
        ["弱バハムート", "Proto-Baha"],
        ["弱バハムト", "Proto-Baha"],
        ["弱バハ", "Proto-Baha"],
        ["弱ババ", "Proto-Baha"], //Typo
        ["弱バハ", "Proto-Baha"],
        ["弱ばは", "Proto-Baha"],
        ["弱八八", "Proto-Baha"],
        ["よわばはむと", "Proto-Baha"],
        ["よわバハムート", "Proto-Baha"],
        ["よわバハムト", "Proto-Baha"],
        ["よわバハ", "Proto-Baha"],
        ["よわババ", "Proto-Baha"],
        ["よわバハ", "Proto-Baha"],
        ["よわばは", "Proto-Baha"],

        ["つよいばはむと", "Proto-BahaHL"],
        ["つよいバハムート", "Proto-BahaHL"],
        ["つよいバハムト", "Proto-BahaHL"],
        ["つよいバハ", "Proto-BahaHL"],
        ["つよいババ", "Proto-BahaHL"],
        ["つよいバハ", "Proto-BahaHL"],
        ["つよいばは", "Proto-BahaHL"],
        ["つよい", "Proto-BahaHL"],
        ["つょいばはむと", "Proto-BahaHL"],
        ["つょいバハムート", "Baha"],
        ["つょいバハムト", "Proto-BahaHL"],
        ["つょいバハ", "Proto-BahaHL"],
        ["つょいババ", "Proto-BahaHL"],
        ["つょいバハ", "Proto-BahaHL"],
        ["つょいばは", "Proto-BahaHL"],
        ["つょい", "Proto-BahaHL"],
        ["つよばはむと", "Proto-BahaHL"],
        ["つよバハムート", "Baha"],
        ["つよバハムト", "Proto-BahaHL"],
        ["つよバハ", "Proto-BahaHL"],
        ["つよババ", "Proto-BahaHL"],
        ["つよバハ", "Proto-BahaHL"],
        ["つよばは", "Proto-BahaHL"],
        ["つよ", "Proto-BahaHL"],
        ["つょばはむと", "Proto-BahaHL"],
        ["つょバハムート", "Baha"],
        ["つょバハムト", "Proto-BahaHL"],
        ["つょバハ", "Proto-BahaHL"],
        ["つょババ", "Proto-BahaHL"],
        ["つょバハ", "Proto-BahaHL"],
        ["つょばは", "Proto-BahaHL"],
        ["ツヨイばはむと", "Proto-BahaHL"],
        ["ツヨイバハムート", "Baha"],
        ["ツヨイバハムト", "Proto-BahaHL"],
        ["ツヨイバハ", "Proto-BahaHL"],
        ["ツヨイババ", "Proto-BahaHL"],
        ["ツヨイバハ", "Proto-BahaHL"],
        ["ツヨイばは", "Proto-BahaHL"],
        ["ツヨばはむと", "Proto-BahaHL"],
        ["ツヨバハムート", "Baha"],
        ["ツヨバハムト", "Proto-BahaHL"],
        ["ツヨバハ", "Proto-BahaHL"],
        ["ツヨババ", "Proto-BahaHL"],
        ["ツヨバハ", "Proto-BahaHL"],
        ["ツヨばは", "Proto-BahaHL"],
        ["ツヨイバハ", "Proto-BahaHL"],
        ["ツヨバハ", "Proto-BahaHL"],
        ["強いバハ", "Proto-BahaHL"],
        ["強バハ", "Proto-BahaHL"],
        ["強バハ", "Proto-BahaHL"],
        ["強八八", "Proto-BahaHL"],
        ["強ばは", "Proto-BahaHL"],
        ["強バ", "Proto-BahaHL"],
        ["ツヨばはむと", "Proto-BahaHL"],
        ["ツヨバハムート", "Baha"],
        ["ツヨバハムト", "Proto-BahaHL"],
        ["ツヨバハ", "Proto-BahaHL"],
        ["ツヨババ", "Proto-BahaHL"],
        ["ツヨバハ", "Proto-BahaHL"],
        ["ツヨばは", "Proto-BahaHL"],
        ["ツヨ", "ProtoHL"],

        ["ヨワ", "WeakProto-"],
        ["プロト", "Proto-"],

        ["アルばはむと", "Ult-Baha"],
        ["アルバハムート", "Baha"],
        ["アルバハムト", "Ult-Baha"],
        ["アルバハ", "Ult-Baha"],
        ["アルババ", "Ult-Baha"],
        ["アルばは", "Ult-Baha"],
        ["ア ル バ ハ", "Ult-Baha"],
        ["アルバハ", "Ult-Baha"],
        ["アばはむと", "Ult-Baha"],
        ["アバハムート", "Baha"],
        ["アバハムト", "Ult-Baha"],
        ["アバハ", "Ult-Baha"],
        ["アババ", "Ult-Baha"],
        ["アばは", "Ult-Baha"],
        ["アバハ", "Ult-Baha"],
        ["アノレ", "Ult-Baha"],
        ["あるばはむと", "Ult-Baha"],
        ["あるバハムート", "Baha"],
        ["あるバハムト", "Ult-Baha"],
        ["あるバハ", "Ult-Baha"],
        ["あるババ", "Ult-Baha"],
        ["あるばは", "Ult-Baha"],
        ["あるばあ", "Ult-Baha"],
        ["おはバハ", "Ult-Baha"],
        ["了儿八八", "Ult-Baha"],
        ["アルティメットバハムート", "Ult-Baha"],
        ["アルティメット", "Ult-"],
        ["アルティメ", "Ult-Baha"],
        ["ばはむと", "Baha"],
        ["バハムート", "Baha"],
        ["バハムト", "Baha"],
        ["バハ", "Baha"],
        ["ババ", "Baha"],
        ["バハ", "Baha"],
        ["ばは", "Baha"],
        ["八八", "Baha"],
        ["神撃究極の竜", "Ult-Baha"],
        ["神撃の竜", "Baha"],
        ["神撃", "Baha"],

        ["最終ソーン", "5★Song"],
        ["最終", "Final"],
        ["解放", "Uncapped"],
        ["ソーン", "Song"],
        ["シャオ", "Shao"],
        ["シャオ", "Shao"],
        ["麻痺延長有り", "ParaExtend"],
        ["麻痺延長有", "ParaExtend"],
        ["麻痺延長", "ParaExtend"],
        ["麻痺", "Para"],
        ["麻痹", "Para"],
        ["麻", "Para"],
        ["痹", "Para"],
        ["痺", "Para"],
        ["マヒ", "Para"],
        ["延長", "Extend"],
        ["延", "Extend"],
        ["デバフ", "Debuff"],
        ["ブレーキ", "Break"],
        ["ブレキ", "Break"],
        ["ブレキ", "Break"],
        ["ブレ", "Break"],
        ["ブレ", "Break"],
        ["ぶれ", "Break"],
        ["猿", "Sarunan"],
        ["サル", "Sarunan"],
        ["恐怖", "Fear"],
        ["魅了", "Charm"],
        ["誘惑", "Entice"],
        ["魅惑", "Charm/Entice"],
        ["誘", "Entice"],
        ["魅", "Charm"],
        ["ミスト", "Mist"],
        ["ウニア", "Unia"],
        ["ブリザード", "Blizz"],
        ["ブリザ", "Blizz"],
        ["ブリ", "Blizz"],
        ["鰤", "Blizz"],
        ["ぶり", "Blizz"],
        ["ブリザード", "Blizz"],
        ["ブリザ", "Blizz"],
        ["ブリー", "Blizz"],
        ["ブリ", "Blizz"],
        ["フレア", "Flare"],
        ["フレ", "Flare"],
        ["フレア", "Flare"],
        ["フレ", "Flare"],
        ["ふれ", "Flare"],
        ["原子崩壊", "Atomic"], // Christmas Dokkan
        ["原子", "Atomic"], // Christmas Dokkan
        ["崩壊", "Atomic"], // Christmas Dokkan
        ["空間断裂", "Rupture"], // Visa Zoi
        ["断裂", "Rupture"], // Visa Zoi
        ["領域", "Field"],
        ["フィールド", "Field"],
        ["喪失", "Forfeit"],
        ["喪", "Forfeit"],
        ["カトル", "Forfeit"],
        ["カトル", "Forfeit"],
        ["カト", "Forfeit"],
        ["ミムメモ", "Mimlemel"],
        ["回復", "Heal"],
        ["アビリティ", "AbilityDamage"],
        ["アビダメ", "AbilityDamage"],
        ["アビ", "Ability"],
        ["スキル", "Skill"],
        ["ソウルピルファー", "SoulSoloist"],
        ["ピルファー", "SoulSoloist"],
        ["ピル", "SoulSoloist"],
        ["天蓋花", "SpiderLily"], // Esser
        ["グラビ", "Gravity"],
        ["ディスペル", "Dispel"],
        ["トレハン", "TreasureHunt"],
        ["トール持ち", "ThorOwner"],
        ["トル持ち", "ThorOwner"],
        ["ト持ち", "ThorOwner"],
        ["卜持ち", "ThorOwner"],
        ["ト持ち", "ThorOwner"],
        ["ト持", "ThorOwner"],
        ["卜持", "ThorOwner"],
        ["ト持", "ThorOwner"],
        ["トール", "Thor"],
        ["トル", "Thor"],
        ["トール", "Thor"],
        ["トル", "Thor"],
        ["托", "Thor"],
        ["召喚石", "Summon"],
        ["召喚", "Summon"],
        ["石持つ", "HaveSummon"],
        ["石持ち", "HaveSummon"],
        ["石持者", "SummonOwner"],
        ["石持", "HaveSummon"],
        ["石無し", "NoSummon"],
        ["石無", "NoSummon"],
        ["無石", "NoSummon"],
        ["石なし", "NoSummon"],
        ["持ち", "Owner"],
        ["持", "Owner"],
        ["鰹", "Bonito"],
        ["カツウォヌス", "Bonito"],
        ["カツウォ", "Bonito"],
        ["カツオ", "Bonito"],
        ["基", "0★"],
        ["未凸", "0★"],
        ["凸", "★"],
        ["担当", "Responsible"],
        ["アニラ", "Anila"],
        ["さくっと", "Speedrun"],
        ["高速", "Speedrun"],
        ["速度", "Speedrun"],
        ["ぶん流し", "Speedrun"],
        ["飛ばし", "Speedrun"],
        ["飛ばせる", "Speedrun"],
        ["スピード", "Speedrun"],
        ["サクサク", "Speedrun"],
        ["ささっと", "Speedrun"],
        ["速", "Fast"],
        ["サポ", "Support"],
        ["支援", "Support"],
        ["編成", "Team"],
        ["攻撃", "Attack"],

        ["スラ爆", "Slimeblasting"],
        ["順貼り", "Train (Host in join order)"],
        ["順張り", "Train (Host in join order)"],
        ["逆順貼り", "Train (Host in reverse join order)"],
        ["逆順張り", "Train (Host in reverse join order)"],
        ["時間貼り", "(Split hosting by time)"],
        ["主全貼り", "(Host is hosting)"],
        ["主連貼り", "(Host is hosting)"],
        ["主貼り", "(Host is hosting)"],
        ["主貼", "(Host is hosting)"],
        ["主張り", "(Host is hosting)"],
        ["自発", "Hosting"],
        ["自發", "Hosting"],
        ["白発", "Hosting"],
        ["白發", "Hosting"],
        ["出し", "Hosting"],
        ["交代", "(Take turns hosting)"],
        ["分交代", " minute hosting shifts"],
        ["分頃", " minutes(About)"],
        ["分", " minutes"],
        ["汁飲みます", "(will elixir)"],
        ["汁チェイン", "(will elixir)"],
        ["汁チェ", "(will elixir)"],
        ["ステージ", "Stage"],
        ["以上で", "Above"],
        ["以上", "Above"],
        ["上", "Above"],
        ["するまで", "Until"],
        ["揃うまで", "Until"],
        ["まで", "Until"],
        ["以下", "Below"],
        ["以降", "Below"],
        ["未満", "Below"],
        ["周回", "Grind"],
        ["繰り返す", "Repeats"],
        ["連続", "Repeats"],
        ["連續", "Repeats"],
        ["連覇", "Repeats"],
        ["連戰", "RerunBattles"], // not always a train?
        ["連戦", "RerunBattles"], // not always a train?
        ["数戦", "MultipleBattles"],
        ["何周か", "MultipleTimes"],
        ["マルチ", "MultipleTimes"],
        ["一戦", "Once"],
        ["一回", "Once"],
        ["いっかい", "Once"],
        ["単発", "Once"],
        ["一度", "Once"],
        ["戦", "Battle"],
        ["連", "times"],
        ["连", "times"],
        ["蓮", "times"],
        ["回やります", "Times"],
        ["回", "times"],
        ["廻", "times"],
        ["次", "times"],
        ["場", "times"],
        ["倍", "times"], //this is the math "times", somebody had a google translation error
        ["全日", "AllDay"],
        ["全部", "All"],
        ["全力", "All-out"],
        ["人位", "players"],
        ["人", "players"],
        ["プレイヤー", "player"],
        ["クリア", "Clear"],
        ["討伐", "Subjugate"],
        ["目的", "Objective"],
        ["目標", "Objective"],
        ["詳細", "Detail"],
        ["未定", "Undetermined"],
        ["進めたいです", "Progression"],
        ["進行", "Progression"],
        ["進入", "Entry"],
        ["階層", "Tier"],
        ["層", "Tier"],
        ["狩り", "Hunting"],

        // Drops

        ["ドロップ", "Drop"],
        ["落ちます", "Drop"],
        ["落ちる", "Drop"],
        ["落ち", "Drop"],
        ["落", "Drop"],
        ["集合", "Collection"],
        ["收集", " Collecting"],
        ["集まる", " Collecting"],
        ["集め", " Collecting"],
        ["あつめ", "Collecting"],
        ["掘り", "Mining"],
        ["掘", "Mining"],
        ["取得", "Acquire"],
        ["クリスタル", "Crystal"],
        ["クリスタる", "Crystal"],
        ["稼ぎ", "Farm"],
        ["トレジャー", "Treasure"],
        ["木箱", "WoodenChest"],
        ["銀箱", "SilverChest"],
        ["銀い箱", "SilverChest"],
        ["赤箱", "RedChest"],
        ["赤い箱", "RedChest"],
        ["青箱", "BlueChest"],
        ["青い箱", "BlueChest"],
        ["碧空の結晶", "BlueSkyCrystal"],
        ["碧空結晶", "BlueSkyCrystal"],
        ["碧空", "BlueSkyCrystal"],
        ["結晶", "Crystal"],
        ["銀天の輝", "SilverCentrum"],
        ["銀天", "SilverCentrum"],
        ["銀", "Silver"],
        ["輝き", "T.Anima/Centrum"],
        ["輝", "T.Anima/Centrum"],
        ["ビー玉", "T.Anima"],
        ["ビーダマ", "T.Anima"],
        ["アニマ", "Anima"],
        ["アニ", "Anima"],
        ["アニマ", "Anima"],
        ["あにま", "Anima"],
        ["プシュケー", "Urn"],
        ["プシュケ", "Urn"],
        ["プシュ", "Urn"],
        ["プスケ", "Urn"],
        ["ぷすけ", "Urn"],
        ["杯", "Urn"],
        ["メテオライト", "Meteorite"],
        ["アヴェンジャー", "Avenger"],
        ["スコフニュング", "Skofnung"],
        ["ニルヴァーナ", "Nirvana"],
        ["ケラウノス", "Keraunos"],
        ["オリバー", "Oliver"],
        ["イペタム", "Ipetam"],
        ["鬼神の籠手", "Hellion Gauntlet"],
        ["ローゼンボーゲン", "Rosenbogen"],
        ["ランゲレイク", "Langelik"],
        ["ロムルスの槍", "Romulus Spear"],
        ["ファウスト", "Faust"],
        ["天叢雲剣", "Murakamo"],
        ["千子村正", "Muramasa"],
        ["アシュケロン", "Aschallon"],
        ["ネブカドネザル", "Nebuchad"],
        ["カピラヴァストゥ", "Kapilavastu"],
        ["ミセリコルデ", "Misericorde"],
        ["レプリカ", "Replica"],
        ["剣闘士の証", "GladiatorDistinction"],
        ["守護騎士の証", "GuardianDistinction"],
        ["聖職者の証", "PilgrimDistinction"],
        ["魔導士の証", "MageDistinction"],
        ["盗賊の証", "BanditDistinction"],
        ["魔剣士の証", "FencerDistinction"],
        ["格闘士の証", "CombatantDistinction"],
        ["射手の証", "SharpshooterDistinction"],
        ["吟遊詩人の証", "TroubadourDistinction"],
        ["槍騎兵の証", "CavalrymanDistinction"],
        ["錬金術師の証", "AlchemistDistinction"],
        ["侍の証", "SamuraiDistinction"],
        ["忍の証", "NinjaDistinction"],
        ["剣聖の証", "SwordmasterDistinction"],
        ["撃手の証", "GunslingerDistinction"],
        ["賢者の証", "MysticDistinction"],
        ["暗殺者の証", "AssassinDistinction"],
        ["戦士の信念", "WarriorCreed"],
        ["魔導士の信念", "MageCreed"],
        ["信念", "Creeds"],
        ["剣闘士証", "GladiatorDistinction"],
        ["守護騎士証", "GuardianDistinction"],
        ["聖職者証", "PilgrimDistinction"],
        ["魔導士証", "MageDistinction"],
        ["盗賊証", "BanditDistinction"],
        ["魔剣士証", "FencerDistinction"],
        ["格闘士証", "CombatantDistinction"],
        ["射手証", "SharpshooterDistinction"],
        ["吟遊詩人証", "TroubadourDistinction"],
        ["槍騎兵証", "CavalrymanDistinction"],
        ["錬金術師証", "AlchemistDistinction"],
        ["侍証", "SamuraiDistinction"],
        ["忍証", "NinjaDistinction"],
        ["剣聖証", "SwordmasterDistinction"],
        ["撃手証", "GunslingerDistinction"],
        ["賢者証", "MysticDistinction"],
        ["暗殺者証", "AssassinDistinction"],
        ["戦士信念", "WarriorCreed"],
        ["魔導士信念", "MageCreed"],
        ["証", "Distinction"],
        ["栄光の証", "ChampionMerit"],
        ["栄光", "Champion"],
        ["覇者の証", "SupremeMerit"],
        ["覇者", "Supreme"],
        ["究竟の証", "LegendaryMerit"],
        ["究竟", "Legendary"],
        ["証", "Merit"],
        ["英雄", "ClassChampion"],
        ["朽ちた", "Rusted"],
        ["朽ち", "RustedWeapon"],
        ["朽", "Rusted"],
        ["武器ィ", "Weapooon"],
        ["武器", "Weapon"],
        ["武", "Weapon"],
        ["騎士の誇り", "KnightEsteem"],
	    ["騎士誇り", "KnightEsteem"],
	    ["賢者の誇り", "SageEsteem"],
	    ["賢者誇り", "SageEsteem"],
        ["紫電角", "PrimevalHorn"],
        ["角", "Horn"],
        ["ツノ", "Horn"],
        ["ヒヒイロカネ", "GoldBrick"],
        ["ヒヒイロ", "GoldBrick"],
        ["強化", "Improve"],
        ["おっけ", "AES"],
        ["オッケ", "AES"],
        ["エッケ", "ES"],
        ["重視", "Focus"],
        ["おなら", "Anc.Nala"],
        ["オナラ", "Anc.Nala"],
        ["インドラリム", "Indra"],
        ["マイムール", "Spymur"],
        ["リアクター", "Reactor"],
        ["花蕾", "Bud"],
        ["蕾", "Bud"],
        ["ヒレ", "Fin"],
        ["鱗", "Fin"],
        ["琥珀眼", "Eye"],
        ["眼球", "Eye"],
        ["目玉", "Eye"],
        ["オメガ", "Ultima"],
        ["トリガー", "Trigger(Host)"],
        ["栗", "HLCrystal"],
        ["コンプ", "Complete"],
        ["黒札", "ObsidianReam"],
        ["赤星", "Fire"],
        ["青星", "Water"],
        ["黄星", "Earth"],
        ["緑星", "Wind"],
        ["白星", "Light"],
        ["黒星", "Dark"],
        ["天秤", "Scales"],
        ["オベロン", "Auberon"],

        ["環境", "Debuffs"],
        ["ぐらいから", "About"], // Starts around this many players
        ["くらいから", "About"], // Same as above
        ["ぐらいで", "About"], // Same as above
        ["くらいで", "About"], // Same as above
        ["ぐらい", "About"], // Same as above
        ["くらい", "About"], // Same as above
        ["前後", "About"], // Same as above
        ["から", "About"],
        ["適当", "Appropriate"],
        ["フル", "Full"],

        ["主弱い", "Newbie"],
        ["主弱", "Newbie"],
        ["主雑魚", "Newbie"],
        ["主", "HostIs "],
        ["弱い", "Newbie"],
        ["弱", "Newbie"],
        ["雑魚", "Newbie"],
        ["しょしんしゃ", "Newbie"],
        ["依頼", "Request"],
        ["募集中", "Needed"],
        ["招募中", "Needed"],
        ["籌募", "Needed"],
        ["招募", "Needed"],
        ["募集", "Needed"],
        ["募", "Needed"],
        ["求", "Needed"],
        ["必須", "Required"],
        ["公開", "Pub"],
        ["開幕", "AtStart"],
        ["開", "AtStart"],
        ["初手", "AtStart"],
        ["外援", "Pub"],
        ["救援", "Backup"],
        ["救助", "Backup"],
        ["救難", "Backup"],
        ["救済", "Backup"],
        ["救", "Backup"],
        ["放置", "AFK"],
        ["摸魚", "AFK"],
        ["有り", "Available"],
        ["有", "Available"],
        ["あります", "Available"],
        ["あリます", "Available"],
        ["あり", "Available"],
        ["アリ", "Available"],
        ["無い", "Available"],
        ["無し", "NotAvailable"],
        ["無", "NotAvailable"],
        ["なし", "NotAvailable"],
        ["禁止", "Prohibited"],
        ["禁", "Prohibited"],
        ["厳禁", "Prohibited"],
        ["ダメ", "Prohibited"],
        ["先着", "First"],
        ["最初", "First"],
        ["初めて", "FirstTime"],
        ["初見", "FirstTime"],
        ["初", "First"],
        ["挑戦", "Challenge"],
        ["燃え尽きる", "Burnout"],
        ["燃え尽", "Burnout"],
        ["ソーロー", "Solo"],

        ["ジョブ", "Job"],
        ["ファイター", "Fighter"],
        ["ナイト", "Knight"],
        ["プリースト", "Priest"],
        ["ウィザード", "Wizard"],
        ["シーフ", "Thief"],
        ["エンハンサー", "Enhancer"],
        ["グラップラー", "Grappler"],
        ["レンジャー", "Ranger"],
        ["ハーピスト", "Harpist"],
        ["ランサー", "Lancer"],
        ["ウォーリア", "Warrior"],
        ["フォートレス", "Sentinel"],
        ["クレリック", "Cleric"],
        ["ソーサラー", "Sorcerer"],
        ["レイダー", "Raider"],
        ["アルカナソード", "ArcanaDueler"],
        ["クンフー", "Kung Fu Artist"],
        ["マークスマン", "Archer"],
        ["ミンストレル", "Bard"],
        ["ドラグーン", "Dragoon"],
        ["ホーリーセイバー", "HolySaber"],
        ["ホリセ", "Holy Saber"],
        ["ビショップ", "Bishop"],
        ["ハーミット", "Hermit"],
        ["ホークアイ", "Hawkeye"],
        ["オーガ", "Ogre"],
        ["サイドワインダー", "Sidewinder"],
        ["ヴァルキュリア", "Valkyrie"],
        ["ベルセルク", "Berserker"],
        ["ウォーロック", "Warlock"],
        ["ギゾク", "BanditTycoon"],
        ["ぎぞく", "BanditTycoon"],
        ["カオスルーダー", "ChaosRuler"],
        ["ハウンドドッグ", "Nighthound"],
        ["ハウンド", "Nighthound"],
        ["エリュシオン", "Elysian"],
        ["アルケミスト", "Alchemist"],
        ["忍者", "Ninja"],
        ["侍", "Samurai"],
        ["剣聖", "Swordmaster"],
        ["ガンスリンガー", "Gunslinger"],
        ["賢者", "Mystic"],
        ["アサシン", "Assassin"],
        ["ドラムマスター", "DrumMaster"],
        ["ダンサー", "Dancer"],
        ["ダンサ", "Dancer"],
        ["舞娘", "Dancer"],
        ["舞者", "Dancer"],
        ["メカニック", "Mechanic"],
        ["ポンマス", "WeaponMaster"],
        ["パスタ", "Superstar"],
        ["がおー", "Berserker"],
        ["ガオー", "Berserker"],
        ["ベルセ", "Berserker"],
        ["ウォロ", "Warlock"],
        ["魚", "Warlock"],
        ["ダクフェ", "DarkFencer"],
        ["カオル", "ChaosRuler"],
        ["ドラマス", "DrumMaster"],
        ["エリュ", "Elysian"],
        ["エリ", "Elysian"],
        ["エリュ", "Elysian"],
        ["スパルタン", "Spartan"],
        ["スパルタ", "Spartan"],
        ["スパト", "Spartan"],
        ["スパ", "Spartan"],
        ["スパ", "Spartan"],
        ["義賊", "BanditTycoon"],
        ["ハウンド", "Nighthound"],
        ["アプサラス", "Apsaras"],
        ["レスラー", "Luchador"],
        ["レスラ", "Luchador"],
        ["セージ", "Sage"],
        ["セジ", "Sage"],
        ["セ", "Sage"],
        ["セージ", "Sage"],
        ["セジ", "Sage"],
        ["セ", "Sage"],
        ["せ", "Sage"],
        ["スセ", "Spart/Sage"],
        ["セエ", "Sage/Elysian"],
        ["ザ・グローリー", "Glorybringer"],
        ["ザ・グローリー", "Glorybringer"],
        ["グローリー", "Glorybringer"],
        ["剣聖", "Glorybringer"],
        ["黒猫道士", "Nekomancer"],
        ["黒猫", "Nekomancer"],
        ["猫", "Nekomancer"],
        ["道士", "Nekomancer"],
        ["剣豪", "Kengo"],
        ["劍豪", "Kengo"],
        ["豪", "Kengo"],
        ["魔法戦士", "Runeslayer"],
        ["魔戦", "Runeslayer"],
        ["ドクター", "Doctor"],
        ["クリュサオル", "Chrysaor"],
        ["クリュ", "Chrysaor"],
        ["剣剣", "Chrysaor"],
        ["双剣", "Chrysaor"],
        ["剣劍", "Chrysaor"],
        ["双劍", "Chrysaor"],
        ["ソルジャー", "Soldier"],
        ["ソルジャ", "Soldier"],
        ["ソルジ", "Soldier"],
        ["トーメンター", "Tormentor"],
        ["トーメン", "Tormentor"],
        ["のみ", "Only"],
        ["だけ", "Only"],
        ["オンリー", "Only"],
        ["どなたでも", "Anyone"],
        ["だれでも", "Anyone"],
        ["誰でもどうぞ", "Anyone"],
        ["誰でも", "Anyone"],
        ["誰も", "Anyone"],
        ["ご自由に", "FreeForAllRace"],
        ["Mフリー", "FreeForAllRace"],
        ["自由", "FreeForAll"],
        ["イオ", "Io"],

        ["剣", "Sword"],
        ["劍", "Sword"],
        ["短剣", "Dagger"],
        ["短劍", "Dagger"],
        ["斧", "Axe"],
        ["槍", "Spear"],
        ["銃", "Gun"],
        ["杖", "Staff"],
        ["弓", "Bow"],
        ["刀", "Katana"],
        ["楽器", "Harp"],
        ["琴", "Harp"],
        ["格闘", "Melee"],
        ["拳", "Fist"],
        ["爪", "Claw"],

        ["ゼノ", "Xeno"],

        ["波濤", "Neptune"],
        ["ネプネプ", "Neptune"],
        ["ネプチューン", "Neptune"],
        ["ネプ", "Neptune"],
        ["花信風", "Zephyrus"],
        ["ゼピュロス", "Zephyrus"],
        ["ゼピュ", "Zephyrus"],
        ["巨巌", "Titan"],
        ["ティターン", "Titan"],
        ["ティタ", "Titan"],
        ["マッチョ", "Titan"], // macho
        ["揺炎", "Agni"],
        ["アグニス", "Agni"],

        ["ローズクイーン", "RoseQueen"],
        ["ローズクイン", "RoseQueen"],
        ["ローズタ", "RoseQueen"],
        ["ローズ", "RoseQueen"],
        ["ローズクイーン", "RoseQueen"],
        ["ローズ", "RoseQueen"],
        ["薔薇", "RoseQueen"],
        ["ろーず", "RoseQueen"],
        ["ロゼッタ", "RoseQueen"],
        ["ロークリ", "RoseQueen"],

        ["降臨、調停の翼", "Grande"],
        ["降臨、調停", "Grande"],
        ["調停の翼", "Grande"],
        ["調停翼", "Grande"],
        ["調停翼", "Grande"],
        ["調停", "Grande"],
        ["ジ・オーダーグランデ", "Grande"],
        ["ジ・オーダーグランデ", "Grande"],
        ["ジ・オーダグランデ", "Grande"],
        ["ジ・オーダグランデ", "Grande"],
        ["ジ・オーダー・グランデ", "Grande"],
        ["ジ・オーダ・グランデ", "Grande"],
        ["ジ・オーダー・グランデ", "Grande"],
        ["ジ・オーダ・グランデ", "Grande"],
        ["ジ・オーダー・グランテ", "Grande"],
        ["ジ・オーダ・グランテ", "Grande"],
        ["ジ・オーダー・グランテ", "Grande"],
        ["ジ・オーダ・グランテ", "Grande"],
        ["オーダー・グランデ", "Grande"],
        ["オーダー・グランデ", "Grande"],
        ["オーダ・グランデ", "Grande"],
        ["オーダ・グランテ", "Grande"],
        ["オーダ・グランデ", "Grande"],
        ["オーダ・グランテ", "Grande"],
        ["ジオーダーグランデ", "Grande"],
        ["ジオーダーグランテ", "Grande"],
        ["オーダーグランデ", "Grande"],
        ["オーダーグランテ", "Grande"],
        ["ジオグラ", "Grande"],
        ["グランデ", "Grande"],
        ["グランテ", "Grande"],
        ["ンデ", "Grande"],
        ["ンテ", "Grande"],
        ["ぐらんで", "Grande"],
        ["んで", "Grande"],
        ["ゾーイ", "Grande"],
        ["ぞーい", "Grande"],

        ["新石", "T2"],
        ["アテナ", "Athena"],
        ["宛名", "Athena"],
        ["バアル", "Baal"],
        ["ばある", "Baal"],
        ["バール", "Baal"],
        ["巴爾", "Baal"],
        ["グラニ", "Grani"],
        ["グラ二", "Grani"],
        ["ガルーダ", "Garuda"],
        ["ガルダ", "Garuda"],
        ["オーディン", "Odin"],
        ["オディン", "Odin"],
        ["オデン", "Odin"],
        ["おでん", "Odin"],
        ["リッチ", "Lich"],
        ["りっち", "Lich"],

        ["旧石", "T1"],
        ["ナタク", "Nezha"],
        ["ナタ", "Nezha"],
        ["なたく", "Nezha"],
        ["マキュウラマリウス", "MaculaMarius"],
        ["マキュラマリウス", "MaculaMarius"],
        ["マキュウラ", "MaculaMarius"],
        ["マキュラ", "Macula"],
        ["マキュ", "Macula"],
        ["まきゅ", "Macula"],
        ["マリウス", "Marius"],
        ["メドゥーサ", "Medusa"],
        ["メドウーサ", "Medusa"],
        ["メドューサ", "Medusa"],
        ["メデューサ", "Medusa"],
        ["メデゥーサ", "Medusa"],
        ["メドゥ子", "Medusa"],
        ["メデュ子", "Medusa"],
        ["メデゥ子", "Medusa"],
        ["メドュ子", "Medusa"],
        ["メド子", "Medusa"],
        ["メデュ", "Medusa"],
        ["メデゥ", "Medusa"],
        ["メドコ", "Medusa"],
        ["メドゥ", "Medusa"],
        ["メド", "Medusa"],
        ["めど子", "Medusa"],
        ["めどぅ", "Medusa"],
        ["めど", "Medusa"],
        ["メデューサ", "Medusa"],
        ["フラム=グラス", "TwinElements"],
        ["フラムダース", "TwinElements"],
        ["フラムグラス", "TwinElements"],
        ["フラム", "TwinElements"],
        ["フラマ", "TwinElements"],
        ["フラグラ", "TwinElements"],
        ["ふらむ", "TwinElements"],
        ["双子", "TwinElements"],
        ["フラムグラス", "TwinElements"],
        ["フラム", "TwinElements"],
        ["グラ", "TwinElements"],
        ["アポロン", "Apollo"],
        ["アポロロ", "Apollo"],
        ["アポロ", "Apollo"],
        ["Dエンジェル・オリヴィエ", "DAOlivia"],
        ["Dエンジェル・オリヴィエ", "DAOlivia"],
        ["オリヴィア", "Olivia"],
        ["オリヴィエ", "Olivia"],
        ["Dエンジェル", "DAOlivia"],
        ["Dエンジェル", "DAOlivia"],
        ["オリビエ", "DAOlivia"],
        ["織部", "DAOlivia"],

        ["プロメテウス", "Prometheus"], //Correct
        ["プロメテ", "Promethe"],
        ["プロメ", "Prome"],
        ["ぷろめてうす", "Prometheus"],
        ["ぷろめて", "Promethe"],
        ["ぷろめ", "Prome"],
        ["カー・オン", "Ca Ong"],
        ["カー・オン", "Ca Ong"],
        ["カー オン", "Ca Ong"],
        ["カー オン", "Ca Ong"],
        ["カーオン", "Ca Ong"],
        ["かーおん", "Ca Ong"],
        ["鯨", "Ca Ong"],
        ["バイヴァカハ", "Morrigna"],
        ["バイヴカハ", "Morrigna"],
        ["バイヴガハ", "Morrigna"],
        ["バイブカハ", "Morrigna"],
        ["バイブ", "Morrigna"],
        ["バイヴ", "Morrigna"],
        ["バイウ", "Morrigna"],
        ["ばいがうは", "Morrigna"],
        ["ばいが", "Morrigna"],
        ["ギルガメッシュ", "Gilgamesh"],
        ["ギルガメシュ", "Gilgamesh"],
        ["ギルガメ", "Gilgame"],
        ["ギルガ", "Gilga"],
        ["ギル", "Gil"],
        ["ヘクトル", "Hector"],
        ["ヘクトル", "Hector"],
        ["へくとる", "Hector"],
        ["アヌビス", "Anubis"],
        ["イヌ", "Dog"],
        ["アヌビス", "Anubis"],

        ["大天司", "Primarch"],
        ["大天使", "Primarch"],
        ["四天使", "4Primarch"],
        ["四天司", "4Primarch"],
        ["四天", "4Primarch"],
        ["天司", "Primarch"],
        ["天使", "Primarch"],
        ["てんし", "Primarch"],
        ["テンシ", "Primarch"],
        ["光輪", "Halo"],
        ["ミカァエル", "Michael"], //Correct
        ["ミカエル", "Michael"],
        ["ミカ", "Michael"], //Correct
        ["Michael", "ミカエル"], //Correct
        ["ガブリエル", "Gabriel"], //Correct
        ["カブリエル", "Gabriel"],
        ["ガブ", "Gabriel"], //Correct
        ["がぶりえる", "Gabriel"],
        ["がぶ", "Gabriel"],
        ["ウリエール", "Uriel"], //Correct
        ["ウリエル", "Uriel"],
        ["ウリ", "Uriel"], //Correct
        ["うりえる", "Uriel"],
        ["ラファエル", "Raphael"], //Correct
        ["ラファ", "Raphael"], //Correct
        ["HRT", "Raphael"],
        ["HRT", "Raphael"],
        ["エンジェル", "Angel"],

        ["シヴァ", "Shiva"], //Correct
        ["シヴア", "Shiva"],
        ["シヴ", "Shiva"],
        ["シバァ", "Shiva"],
        ["シバあ", "Shiva"],
        ["シバ", "Shiva"],
        ["ジヴァ", "Shiva"], //Typo
        ["ジバァ", "Shiva"],
        ["ジバ", "Shiva"],
        ["シヴァ", "Shiva"],
        ["エウロペ", "Europa"], //Correct
        ["エウロパ", "Europa"],
        ["エウロベ", "Europa"],
        ["エウロぺ", "Europa"],
        ["エウロべ", "Europa"],
        ["エロ", "Europa"],
        ["エウ", "Eu"],
        ["ロペ", "Ropa"], //Correct
        ["ロパ", "Ropa"],
        ["ロベ", "Ropa"],
        ["OLB", "Europa"],
        ["olb", "Europa"],
        ["えうろっぺ", "Europa"],
        ["えうろぺ", "Europa"],
        ["テーバイ", "Thebes"],
        ["ゴッドガード・ブローディア", "Brodia"], //Correct
        ["ゴッドガード・ブローディア", "Brodia"], //Correct
        ["ゴッドガード・ブロー", "Brodia"],
        ["ゴッドガード・ブロー", "Brodia"],
        ["ッドガード・ブローディア", "Brodia"],
        ["ッドガード・ブローディア", "Brodia"],
        ["ゴッドガード", "Brodia"],
        ["ゴッド", "Brodia"],
        ["ブローディア", "Brodia"],//Correct
        ["ブロディア", "Brodia"],//Correct
        ["ゴッブロ", "Brodia"],
        ["ゴーブロ", "Brodia"],
        ["ゴブロ", "Brodia"], //Correct
        ["ゴプロ", "Brodia"],
        ["コブロ", "Brodia"],
        ["ごブロ", "Brodia"],
        ["ブロ", "Brodia"],
        ["ゴッブロ ", "Brodia"],
        ["ゴブロ", "Brodia"],
        ["ブロ ", "Brodia"],
        ["ごぶろ", "Brodia"],
        ["神盾", "Brodia"],
        ["神域", "Brodia"],
        ["ブルッティア", "Brodia"],
        ["平野綾", "Brodia"],
        ["踊り狂う暴風", "Grimnir"],
        ["荒狂う暴風", "Grimnir"],
        ["グリムニール", "Grimnir"], //Correct
        ["グリームニル", "Grimnir"],
        ["グリムニル", "Grimnir"],
        ["グリーム", "Grimnir"], //Correct
        ["グリー", "Grimnir"],
        ["グリム", "Grimnir"], //Correct
        ["グリ", "Grimnir"],
        ["軍神", "Grimnir"],
        ["ぐりむ", "Grimnir"],
        ["ぐり", "Grimnir"],
        ["グリームニル", "Grimnir"],
        ["グリーム", "Grimnir"],
        ["グリー", "Grimnir"],
        ["グリム", "Grimnir"],
        ["メガトロン", "Megatron"],
        ["メッタトロン", "Metatron"],
        ["メタトロン", "Metatron"], //Correct
        ["メタトロ", "Metatron"],
        ["メタロン", "Metatron"],
        ["メタ", "Metatron"],
        ["メタトロン", "Metatron"],
        ["アヴァター", "Avatar"],
        ["アバーター", "Avatar"],
        ["アバター", "Avatar"], //Correct
        ["アバタ", "Avatar"],
        ["アバダー", "Avatar"],
        ["アバ", "Avatar"],
        ["アバター", "Avatar"],
        ["あばた", "Avatar"],
        ["あなた", "Avatar"],

        ["アーカーシャ", "Akasha"], //Correct
        ["ア一カ一シヤ", "Akasha"],
        ["アーカーシヤ", "Akasha"],
        ["アーカーチャ", "Akasha"],
        ["アーカーチヤ", "Akasha"],
        ["ア一カ一シャ", "Akasha"],
        ["アーカシャ", "Akasha"],
        ["ア一カシャ", "Akasha"],
        ["アーカシヤ", "Akasha"],
        ["ア一カシヤ", "Akasha"],
        ["アーカーシ", "Akasha"],
        ["アカーシャ", "Akasha"],
        ["アカーシヤ", "Akasha"],
        ["アカシャ", "Akasha"],
        ["アカシヤ", "Akasha"],
        ["アーカー", "Akasha"],
        ["ア一カ一", "Akasha"],
        ["アカ", "Akasha"],
        ["アーカーシャ", "Akasha"],
        ["アーカシャ", "Akasha"],
        ["アーカーシ", "Akasha"],
        ["アカーシャ", "Akasha"],
        ["アカシャ", "Akasha"],
        ["アカ", "Akasha"],
        ["あーカーシャ", "Akasha"],
        ["あーかーしゃ", "Akasha"],
        ["あかしゃ", "Akasha"],
        ["明石家", "Akasha"],
        ["明石", "Akasha"],
        ["崩天、虚空の兆", "Akasha"],
        ["崩天", "Akasha"],
        ["赤者", "Akasha"],
        ["垢", "Akasha"],
        ["あかちゃん", "Akasha"],
        ["あか", "Akasha"],

        ["マリス", "Malice"],
        ["マリ", "Mali"],
        ["まりす", "Malice"],
        ["まり", "Mali"],
        ["殲嵐", "TiaMalice"],
        ["黑风", "TiaMalice"],
	    ["黑風", "TiaMalice"],
        ["Malice", "Malice"],
        ["フロネシス", "Phronesis"],
        ["フロネ", "Phronesis"],

        ["リンドヴルム", "Lindwurm"],
        ["リンドウルム", "Lindwurm"],
        ["リンド", "Lindwurm"],
        ["ヴルム", "Lindwurm"],
        ["ウルム", "Lindwurm"],

        ["ダーク・ラプチャー", "Lucifaa"],
        ["ダーク・ラプチャ", "Lucifaa"],
        ["ダーク・ラプチャー", "Lucifaa"],
        ["ダーク・ラプチャ", "Lucifaa"],
        ["ダークラプチャー", "Lucifaa"],
        ["ダークラプチャ", "Lucifaa"],
        ["ダーク", "Dark(Luci)"],
        ["ルシフェル", "Lucifaa"],
        ["ラプチャー", "Lucifaa"],
        ["ルシファ一", "Lucifaa"], // 一 instead of ー
        ["ルシファー", "Lucifaa"],
        ["ルシ", "Luci"],
        ["ル シ", "Luci"],
        ["ルシファー", "Lucifaa"],
        ["ルシ", "Luci"],
        ["るし", "Faa-san"],
        ["ファーさん", "Faa-san"],
        ["ファーサン", "Faa-san"],
        ["ファー", "Faa"],
        ["ファーサン", "Faa-san"],
        ["ファー", "Faa"],
        ["ファさん", "Faa-san"],
        ["ファサン", "Faa-san"],
        ["ファア", "Faa"],
        ["ファ", "Faa"],
        ["ファ", "Faa"],
        ["ふぁー", "Faa"],
        ["櫻井孝宏", "TakahiroSakurai"],
        ["櫻井", "Sakurai"],
        ["孝宏", "Takahiro"],
        ["法桑", "Faa-san"],

        ["ベルゼバブ", "Beelzebub"],
        ["ベルゼ", "Beelzebub"],
        ["ベル", "Bub"],
        ["バブ", "Bub"],
        ["蝿", "Bub"],
        ["ハエ", "Bub"],

        ["被り", "Dupe"], //Team element

        //6 Dragons
        ["龍", "Dragon"],
        ["竜", "Dragon"],
        ["ウィルナス", "Wilnas"], //Fire
        ["ワムデュス", "Wamdus"], //Water
        ["ワムデュ", "Wamdus"],
        ["ワムディス", "Wamdus"],
        ["ワムディ", "Wamdus"],
        ["ガレヲン", "Galleon"], //Earth
        ["ガレオン", "Galleon"],
        ["イーウィヤ", "Ewiyar"], //Wind
        ["イーウィア", "Ewiyar"],
        ["イウィヤ", "Ewiyar"],
        ["ル・オー", "LuWoh"], //Light
        ["ルオー", "LuWoh"],
        ["ルオ", "LuWoh"],
        ["フェディエル", "Fediel"], //Dark
        ["フェディ", "Fediel"],

        ["幽光の羽", "GleamingFeather"],
        ["泡影の風羽", "MysticalFeather"],
        ["雄風の葉", "VorticalPinwheel"],
        ["幽光の砂", "GleamingSandBottle"],
        ["泡影の火砂", "MysticalFlame"],
        ["烈火の岩石", "SearingStone"],
        ["幽光の水", "GleamingWaterJug"],
        ["泡影の水流", "MysticalSplash"],
        ["麗水の珊瑚", "ResplendentCoral"],
        ["幽光の岩", "GleamingStone"],
        ["泡影の岩砂", "MysticalAlluvium"],
        ["豊沃の琥珀", "OpulentAmber"],
        ["赤銅の古紋", "BronzeDisk"], // "-plated" excluded for conciseness
        ["白銀の古紋", "SilverDisk"],
        ["黄金の古紋", "GoldDisk"],
        ["黒紫刃", "Darkblade"],

        ["黄黒麒麟", "HuanglongQilin"],
        ["黄黑麒麟", "HuanglongQilin"],
        ["黒麒麟", "Qilin"],
        ["黑麒麟", "Qilin"],
        ["麒麟", "Qilin"],
        ["麒", "Qilin"],
        ["麟", "Qilin"],
        ["黄龍", "Huanglong"],
        ["黄竜", "Huanglong"],
        ["黄色", "Yellow"],
        ["黄黒", "HuanglongQilin"],
        ["黄黑", "HuanglongQilin"],
        ["黄", "Huang"],
        ["黒", "Qilin"],
        ["黑", "Qilin"],
        ["きりんたち", "HuanglongQilin"],

        ["火", "Fire"],
        ["水", "Water"],
        ["土", "Earth"],
        ["風", "Wind"],
        ["风", "Wind"],
        ["光", "Light"],
        ["闇", "Dark"],
        ["暗", "Dark"],

        ["雑談", "Chat"],
        ["オシャベリ", "Chat"],
        ["チャット", "Chat"],
        ["休憩中", "Resting"],
        ["休憩", "Rest"],
        ["部屋", "Room"],
        ["ルーム", "Room"],
        ["新規", "New"],
        ["新設", "New"],
        ["設立", "SetUp"],
        ["新", "New"],
        ["團員募集中", "Recruiting"],
        ["団員募集中", "Recruiting"],
        ["團員募集", "Recruiting"],
        ["団員募集", "Recruiting"],
        ["團員以外", "Except Crewmates"],
        ["団員以外", "Except Crewmates"],
        ["團員外", "Except Crewmates"],
        ["団員外", "Except Crewmates"],
        ["團員", "Crewmate"],
        ["団員", "Crewmate"],
        ["員", "Member"],
        ["団長", "Danchou"],
        ["騎空団", "Crew"],
        ["團", "Crew"],
        ["団", "Crew"],
        ["予習済", "Practicing"],
        ["練習済", "Practicing"],
        ["予習中", "Practicing"],
        ["練習中", "Practicing"],
        ["予習", "Practice"],
        ["練習", "Practice"],
        ["ソロ", "Quest"],
        ["帯", "Tier"],
        ["ノルマ", "Quota"],
        ["目指", "Aiming"],
        ["狙い", "Aiming"],
        ["狙", "Aiming"],
        ["勝ちたい", "Win"],
        ["勝利", "Win"],
        ["勝", "Win"],
        ["等", "Etc"],
        ["ログ", "Log"],
        ["スタンプ", "Stamp"],
        ["予選", "Prelim"],
        ["予定", "Planned"],
        ["位", "Place"],
        ["面接", "Interview"],
        ["妥協", "Compromise"],
        ["仕事中", "Working"],
        ["仕事", "Work"],
        ["リーグ", "League"],
        ["平均", "Average"],
        ["総合", "Total"],
        ["見てください", "ReadPlease"],
        ["記載", "Entry"],
        ["音樂", "Music"],
        ["鑒賞", "Appreciation"],
        ["ご案内", "Information"],
        ["案内", "Information"],
        ["内容", "Content"],
        ["内部", "Inside"],
        ["身内", "Friends"],
        ["身外", "Non-Friends"],
        ["突破", "Breakthrough"],
        ["逃兵", "Deserter"],
        ["大歡迎", "Welcome"],
        ["歡迎", "Welcome"],
        ["のんびり", "Welcome"],
        ["転属", "Transfer"],
        ["拾っ", "Pickup"],
        ["再建", "Rebuild"],
        ["まったり", "Chill"],
        ["ゆっくり", "Chill"],
        ["自身", "Self"],
        ["組", "Tier"],
        ["昇格", "Promote"],
        ["合併", "Merge"],
        ["傭兵", "Mercenary"],
        ["シード", "Seed"],
        ["クラス", "Tier"], //GW
        ["クラ", "Tier"], //GW

        ["出入り自由", "Join/LeaveAnytime"],
        ["出入自由", "Join/LeaveAnytime"],
        ["入退", "Join/Leave"],


        ["ご協力よろしくお願いします", "Help"],
        ["ご助力お願い致します", "Help"],
        ["助けてください", "Help"],
        ["助けてくださ", "Help"],
        ["助けてくだ", "Help"],
        ["助けてく", "Help"],
        ["助けて下さい", "Help"],
        ["助けて", "Help"],
        ["お助け", "Help"],
        ["ヘルプミ", "HelpMe"],
        ["ヘルプ", "Help"],
        ["お手伝いお願いします", "Help"],
        ["手伝ってくれる方", "Help"],
        ["手伝ってください", "Help"],
        ["手伝って下さい", "Help"],
        ["手伝って", "Help"],
	    ["お手伝い", "Help"],
        ["ください", "Please"],
        ["ご協力", "Help"],
        ["協力", "Help"],
        ["よろしくおねがいいたします", "Please"],
        ["よろしくお願いします", "Please"],
        ["よろしくお願い", "Please"],
        ["お願いします", "Please"],
        ["お願い致します", "Please"],
        ["おねがいします", "Please"],
        ["願います", "Please"],
        ["やります", "Please"],
        ["お願い", "Please"],
        ["何とぞ", "Please"],
        ["なにとぞ", "Please"],
        ["求む", "Needed"],
        ["サクッといきましょう", "Quick"],
        ["サクッと", "Quick"],
        ["さくっと", "Quick"],
        ["気長にお待ちください", "Waiting"],
        ["気ままに待ちます", "Waiting"],
        ["気ままに待ちま", "Waiting"],
        ["気長に待ちますん", "Waiting"],
        ["気長に待ちます", "Waiting"],
        ["気長に待ちま", "Waiting"],
        ["気長い待つ", "Waiting"],
        ["気長い待ち", "Waiting"],
        ["気長い待て", "Waiting"],
        ["気長に待つ", "Waiting"],
        ["気長に待ち", "Waiting"],
        ["気長に待て", "Waiting"],
        ["気長待ち", "Waiting"],
        ["気長待つ", "Waiting"],
        ["気長待て", "Waiting"],
        ["気長に", "Waiting"],
        ["気長", "Waiting"],
        ["氣長にお待ちください", "Waiting"],
        ["氣ままに待ちます", "Waiting"],
        ["氣ままに待ちま", "Waiting"],
        ["氣長に待ちますん", "Waiting"],
        ["氣長に待ちます", "Waiting"],
        ["氣長に待ちま", "Waiting"],
        ["氣長い待つ", "Waiting"],
        ["氣長い待ち", "Waiting"],
        ["氣長い待て", "Waiting"],
        ["氣長待ち", "Waiting"],
        ["氣長待つ", "Waiting"],
        ["氣長待て", "Waiting"],
        ["氣長に", "Waiting"],
        ["氣長", "Waiting"],
        ["長い間待っている", "Waiting"],
        ["お待ちください", "Waiting"],
        ["のんびり待ちます", "Waiting"],
        ["待っている", "Waiting"],
        ["待ちます", "Waiting"],
        ["待てる方", "Waiting"],
        ["待つ", "Waiting"],
        ["待ち", "Waiting"],
        ["待て", "Waiting"],
        ["ゆっくりまちます", "Waiting"],
        ["ゆっくり待ちます", "Waiting"],
        ["ゆっくり待ちま", "Waiting"],
        ["ゆっくり待つ", "Waiting"],
        ["ゆっくり待ち", "Waiting"],
        ["ゆっくり待て", "Waiting"],
        ["大歓迎", "Welcome"],
        ["歓迎", "Welcome"],
        ["あと", "After"],
        ["後", "After"],
        ["長い間", "LongTime"],
        ["長い", "Long"],
        ["時間", "Time"],
        ["時", "hour"],
        ["も頑張る", "WorkHard"],
        ["頑張る", "WorkHard"],
        ["頑張", "WorkHard"],
        ["足りてない", "NotEnough"],
        ["参照", "Inquiry"],
        ["または", "Or"],
        ["許可", "Allowed"],
        ["不可", "NotAllowed"],
        ["お断り", "NotAllowed"],
        ["可", "Allowed"],
        ["完全", "Complete"],
        ["完備", "Loaded"],
        ["スクショ", "Screenshot"],
        ["弟子", "Disciple"],
        ["一緒", "Together"],
        ["走りましょ", "Race"],
        ["怖くない", "Scared"],
        ["怖く", "Scared"],
        ["私", "I(Host)"],
        ["追い込み", "Finale"],
        ["以外", "Exception"],
        ["除く", "Exception"],
        ["半", "Half"],
        ["限定", "Limit"],
        ["制限", "Limit"],
        ["限", "Limit"],
        ["確定", "Confirm"],
        ["確認", "Confirm"],
        ["しませんか", "←WouldYouLikeTo"],
        ["最大", "Maximum"],
        ["最低", "AtLeast"],
        ["いっぱい", "Full"],
        ["知らん", "Dunno"],
        ["願", "Hope"],
        ["復活", "Revive"],
        ["調整", "Adjust"],
        ["てきとう", "QuickRun"],
        ["飽きる", "Tired"],
        ["倒せる", "Kill"],
        ["貢献度", "Contribution"],
        ["貢献", "Contribute"],
        ["室", "Room"],

        ["jk", "JK"],
        ["JK", "JK"],
        ["jk", "JK"],
        ["HL", "HL"],
        ["hl", "HL"],
        ["hl", "HL"],
        ["ヘル", "HL"],
        ["へる", "HL"],
        ["HARD", "Hard"],
        ["hard", "Hard"],
        ["H", "Hard"],
        ["h", "Hard"],
        ["N", "Normal"],
        ["n", "Normal"],
        ["M", "MVP"],
        ["a", "a"],
        ["A", "A"],
        ["r", "r"],
        ["R", "R"],
        ["d", "d"],
        ["D", "D"],
        ["o", "o"],

        ["万", "0000"],
        ["千", "000"],
        ["百", "00"],
        ["三十", "30"],
        ["二十", "20"],
        ["十八", "18"],
        ["十五", "15"],
        ["十", "10"],
        ["八", "8"],
        ["六", "6"],
        ["五", "5"],
        ["四", "4"],
        ["三", "3"],
        ["二", "2"],
        ["一", "1"],
        ["億", "HundredMil"],

        ["9", "9"],
        ["8", "8"],
        ["7", "7"],
        ["6", "6"],
        ["5", "5"],
        ["4", "4"],
        ["3", "3"],
        ["2", "2"],
        ["1", "1"],
        ["0", "0"],
        ["!", "!"],
        ["、", ","],
        [",", ","],
        ["【", "["],
        ["】", "]"],
        ["~", "~"],
        ["。", "."],
        ["・", "・"],
        [">", ">"],
        ["<", "<"],
        ["「", "'"],
        ["」", "'"],
        ["(", "("],
        [")", ")"],
        ["%", "%"],
        [":", ":"],
        ["?", "?"],
        ["+", "+"],
        ["〜", "~"],

        // Stuff that needed to be put down here or things go weird
        ["オタク", "Otaku"],
        ["英語", "English"],
        ["英文", "English"],
        ["せめて", "AtLeast"],
        ["退", "Leave"],
        ["ある", "Available"],
        ["デス", "Death"],
        ["ゼウス", "Zeus"],
        ["ラスト", "Last"],
        ["クリ", "Crystal"],
        ["素材", "Mats"],
        ["外出し", "Pub"],
        ["外出", "Pub"],
        ["外部", "Pub"],
        ["外放", "Pub"],
        ["放出", "Pub"],
        ["外", "Pub"],
        ["流し", "Pub"],
        ["希望", "Hoping"],
        ["どうですか", " "],
        ["は", " "],
        ["です", " "],
        ["の", " "],
        ["クレメンス", " "],
        ["します", " "],
        ["者", "Player"],
        ["クソ", "Shit"],
        ["よわ", "Weak"], //Meaning weak, proto-baha is also called weak baha
        ["巴哈", "Baha"],
        ["ハハ", "Baha"],
        ["バ", "Baha"],
        ["不在", "NotHere"],
        ["个", "↑"],
        ["当社比", "ComparedToOthers"],
        ["チャーム", "Charm"],
        ["チャー", "Charm"],
        ["チャ", "Charm"],
        ["途中", "Midway"],
        ["抜け", "Quit"],
        ["抜", "Quit"],
        ["フリー", "Free"],
        ["フリ", "Free"],
        ["姉", "Nee"],
        ["兄", "Nii"],
        ["ちゃん", "-chan"],
        ["さん", "-san"],
        ["サン", "-san"],
        ["サン", "-san"],
        ["様", "-sama"],
        ["くん", "-kun"],
        ["ひとり", "One"],
        ["低空", "LowLevel"],
        ["低", "Low"],
        ["集", " Collecting"],
        ["全", "All"],
        ["超", "Super"],
        ["と", "And"],
        ["テ", "Titan"],
        ["夜", "Night"],
        ["早い", "Fast"],
        ["ビー玉", "TrueAnima"],
        ["玉", "TrueAnima"],
        ["房", "Room"],
        ["雀魂", "Majsoul"],
        ["おk", "Ok"],
        ["ス", "Spartan"],
        ["自", "Self"],
        ["職", "Class"],
        ["以内", "Within"],
        ["内", "Within"],
        ["无", "No"],
        ["石", "Summon"],
        ["アル", "Ult-"],
        ["名", "player(s)"],
        ["プロ", "Proto-"],
        ["高", "High"],
        ["ト", "Thor"],
        ["卜", "Thor"],
        ["ト", "Thor"],
        ["用", "Usage"],
        ["M", "MVP"],
        ["域", "Field"],
        ["不", "Not"],
        ["寝", "Sleep"],
        ["属性", "Element"],
        ["屬性", "Element"],
        ["属", "Element"],
        ["屬", "Element"],
        ["各", "Each"],
        ["来て", "Come"],
        ["続", "Continue"],
        ["續", "Continue"],
        ["赤", "Red"],
        ["青", "Blue"],
        ["黄", "Yellow"],
        ["緑", "Green"],
        ["白", "Light"],
        ["黒", "Dark"],
        ["金", "Gold"],
        ["強", "Strong"],
        ["大", "Big"],
        ["日", "Day"],
        ["即", "Instant"],
    ];

    var translationMap = {};
    var translationRegexp = [];
    for (let [from, to] of translations) {
        translationMap[from] = to;
        translationRegexp.push(from);
    }
    // NOTE: this assumes `from` contains no special regex characters
    translationRegexp = new RegExp("(" + translationRegexp.join("|") + ")", "g");

    function translateComment(c) {
        let repPrefix = "" + Math.random();
        let replaced = [];
        let matches = c.match(translationRegexp);
        if (!matches) {
            return c;
        }
        for (let from of matches) {
            let to = translationMap[from];
            // NOTE: `to` and `from` are used, unescaped, as HTML
            if (c.indexOf(from) !== -1) {
                let i = replaced.length;
                replaced.push([from, to]);
                c = c.replace(from, repPrefix + i);
            }
        }
        for (let i = 0, n = replaced.length; i < n; ++i) {
            let [from, to] = replaced[i];
            c = c.replace(repPrefix + i, "<span style='color:#1c661f'>" + to + "</span>");
        }
        return c;
    }

    function translateComments() {
        let comments = document.getElementsByClassName("txt-room-comment");
        for (let comment of comments) {
            let orig = comment.innerHTML;
            let translated = translateComment(orig);
            if (translated !== orig) {
                comment.addEventListener("contextmenu", function(ev) {
                    prompt("Original Description:", orig);
                    ev.preventDefault();
                });
                comment.innerHTML = translated;
                comment.title = orig;
            }
        }
    }

    function toString() {
        return "".toString.toString();
    }
    toString.toString = toString;

    function hookArguments(o, name, f) {
        let p = o.prototype;
        let orig = p[name];
        p[name] = function() {
            f.apply(this, arguments);
            return orig.apply(this, arguments);
        };
        p[name].toString = function() {
            return orig.toString();
        };
        p[name].toString.toString = toString;
    }

    function installHooks() {
        hookArguments(XMLHttpRequest, "send", function() {
            this.addEventListener("readystatechange", function() {
                if (this.readyState != XMLHttpRequest.DONE) { return; }
                let contentType = this.getResponseHeader("Content-Type") || "";
                if (this.status == 200 &&
                    contentType.indexOf("application/json") !== -1) {
                    if (this.responseURL.indexOf("/coopraid/offers/") !== -1 ||
                        this.responseURL.indexOf("/lobby/offers/") !== -1 ||
                        this.responseURL.indexOf("/coopraid/content/room/") !== -1) {
                        // The comment views will be rendered later in this
                        // tick, so defer translation to the next tick.
                        setTimeout(translateComments, 0);
                    }
                }
            }, false);
        });
    }

    installHooks();
})();