您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Userscript version of "Google Translate This" from https://github.com/andreicristianpetcu/google_translate_this for Tampermonkey or Violentmonkey. v0.5 2019-11-06
当前为
Userscript implementation because extensions cannot inject remotely hosted scripts like Google's Translate widget script.
Operation
Use the Violentmonkey or Tampermonkey menu entries to inject the widget just this time, or to set the script to inject automatically on the site in the future. (If there is a way to do it in Greasemonkey, let me know.)
CSP Limitation
If you don't get the Google Translate bar, one possible reason would be Content Security Policy (CSP). This is a rule sites can set to control which script sources are allowed for a page. The developer tools Console (F12) may report this issue when it occurs.
I prefer having the bar inserted on every page automatically (or I use Greasemonkey)
Here is an alternative script you could try (I haven't tested it myself): https://greasyfork.org/en/scripts/369624-google-translation-bar