您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Force setting Traditional Chinese as the target language, reject Simplified Chinese
// ==UserScript== // @name Forced zh-TW for translate.google // @namespace https://greasyfork.org/zh-TW/scripts/399503-forced-setting-zh-tw-for-asian-languages-of-translate-google // @namespace http://tampermonkey.net/ // @version 0.11 // @description Force setting Traditional Chinese as the target language, reject Simplified Chinese // @author You // @match translate.google.com/* // @match translate.google.com.tw/* // @grant none // ==/UserScript== chkLang() window.onclick = function() {chkLang()} function chkLang() { const cURL = new URL(window.location.href) if (cURL.href.search("tl=zh-CN") != -1) { cURL.href = cURL.href.replace(/tl=zh-CN/g,"tl=zh-TW") window.location.href = cURL.href //location.replace(cURL.href) location.reload() } }