A script that translates the reports of mjai (https://mjai.ekyu.moe/) into Simplified Chinese. 将mjai的英文牌谱报告翻译成简体中文的脚本。
中文版说明跳转至此处
The website mjai (https://mjai.ekyu.moe/) has the feature of analyzing Mahjong logs by AI and generate reports. Although the welcome page of mjai has i18n support, the report page of that game does not. In order to better serve Chinese users who cannot read English well, I wrote this script that can translate the English UI texts into Simplified Chinese.
You may use any add-ons that can run user scripts on browsers. If you don't have one on your browser right now, I suggest TamperMonkey. TamperMonkey is an add-on to mainstream browsers that allows the user to run their own scripts on webpages.
-
Follow the instructions on the TamperMonkey website (link above) to install it on your browser.
-
Download the tampermoneky_script.js file from this repo.
-
Create a new user script on TamperMonkey, and copy the contents from the file to a new user script.
-
You are ready to go! Visit a report of mjai and enjoy Simplified Chinese UI!
The script has been uploaded to GreasyFork, a user script sharing website. You may install the script directly there, but you still need to have an add-on that can run user scripts in your browser.
Currently, this script has only been tested on 6 Tenhou logs, reviewed by Mortal engine. Script might not fully work on logs generated by Jantama, or reviewed by akochan engine.
MIT
这份代码可以将 mjai (https://mjai.ekyu.moe/) 分析的牌谱报告翻译成中文。
您的浏览器上需要有一个能运行用户脚本的插件。如果您的浏览器上还没有的话,我建议可以尝试安装油猴(TamperMonkey)。不知道大陆能不能直接访问,但就算不能的话,既然你能上到GitHub,大概率是会科学上网的吧(
-
在浏览器上安装油猴插件,流程可以参考上面的链接。
-
从本仓库下载tampermoneky_script.js。
-
在油猴插件上新建一个脚本,并将文件里的内容全部拷贝至新的脚本。
-
访问mjai的报告,可以发现页面已经被汉化了。
脚本已经上传至GreasyFork。如果你的浏览器上已经有运行用户脚本的插件的话,可以试试访问该地址一键安装。
目前脚本仅在6份由Mortal引擎分析的天凤牌谱中测过。对于雀魂牌谱或者由akochan引擎分析的牌谱可能不适用。
本仓库的内容在MIT许可证下发布。