您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
🍓 让 ChatGPT 一键翻译您正在阅读的网页
当前为
A userscript that adds a "Translate to Chinese" button on any webpage. When clicked, it sends the text from the webpage to ChatGPT for translation and then displays the translated text on the ChatGPT web interface.
When you visit a webpage with the userscript installed, you'll see a "Translate to Chinese" button at the topright corner of the page. Click the button to send the text from the webpage to ChatGPT for translation. The translated text will be displayed on the ChatGPT web interface.
main.ts
: The main script that initializes the translation process and creates the translate button.createButton.ts
: A helper module that creates the "Translate to Chinese" button and adds it to the webpage.getParagraphs.ts
: A helper module that extracts paragraphs from the webpage.chatkit.ts
: A module that handles the communication with the ChatGPT API.Contributions are welcome! Please feel free to submit issues or pull requests to improve this userscript.
This userscript uses the Mozilla Readability library to extract content from webpages.
This project is licensed under the MIT License.
Respository link: chat-play/apps/page-translate-button
Build code repository link: https://github.com/mefengl/chatgpt-page-translate-button (this repo only contains the built code for greasyfork to automatically update the script)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址