您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a translate buttons for character messages in the chat for beta.character.ai
当前为
This script adds translate buttons to chat messages on the site beta.character.ai
. When a user clicks on a translate button, the script will use the Google Translate API to translate the message into the user's default language. The translated message will be displayed in place of the original message, and clicking the translate button again will restore the original message.
To use the script, first ensure that you are on a chat page on the beta.character.ai
site, for example: https://beta.character.ai/chat?char=12345. Then, the script will automatically add translate buttons to the chat messages.
The script uses the GM_xmlhttpRequest
function to make API requests to the Google Translate service. It also uses the navigator.language
property to determine the user's default language, and the setInterval
function to periodically check for new chat messages and add translate buttons to them.
The script is licensed under the MIT license.