您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Useful tools for ArchWiki translators, now written in TypeScript.
Useful tools for ArchWiki translators, now written in TypeScript.
You can build the script yourself:
Clone the repo:
git clone https://github.com/bonk-dev/arch-translator.git
Remember to install the dev dependencies:
npm install
Single build:
npm run build
Build on change:
npm run watch
The three (two usable) files will be in the build/
directory:
arch-translator.user.js
- ready to use UserScriptarch-translator.srcmap.user.js
- ready to use UserScript but with inlined sourcemaparch-translator.js
- raw output from esbuild
(no UserScript header)The script scans the article for links to other articles and checks if these articles have been already translated to the language of choice.
In this example we can see that the page content contains many links to English pages.
Pages highlighted in green have a translation page.