您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
在搜索结果侧栏显示 ChatGPT 回答(Google、Bing、百度、DuckDuckGo和DeepL)
当前为
# chat-gpt-userscript
[](http://greasyfork.icu/scripts/456077)
[](https://github.com/zhengbangbo/chat-gpt-userscript)
[](https://github.com/zhengbangbo/chat-gpt-userscript/issues)
[](https://github.com/zhengbangbo/chat-gpt-userscript/pulls)
[](https://github.com/zhengbangbo/chat-gpt-userscript/blob/main/LICENSE)
[](https://chat.imzbb.cc)
[English Version](https://github.com/zhengbangbo/chat-gpt-userscript/blob/main/README.md)
> 如果你有任何 BUG 反馈或想要提交 PR,欢迎前往 [GitHub](https://github.com/zhengbangbo/chat-gpt-userscript)
在搜索引擎和翻译器旁显示ChatGPT回答的油猴脚本
- 搜索引擎 ([Google](https://www.google.com/search?q=chatgpt)/[Bing](https://www.bing.com/search?q=who+am+i)/[Baidu](https://www.baidu.com/s?wd=Where%20am%20I%20from%3F)/[DuckDuckGo](https://duckduckgo.com/?q=Where+am+I+going%3F))
- 翻译器 ([DeepL](https://www.deepl.com/translator#zh/en/%E5%9C%A8%E5%B9%B3%E5%9D%A6%E7%9A%84%E9%81%93%E8%B7%AF%E4%B8%8A%E6%9B%B2%E6%8A%98%E5%89%8D%E8%A1%8C))


## 安装
1. 阅读 [这篇帮助文档](http://greasyfork.icu/help/installing-user-scripts) 去安装合适的脚本管理器。
2. 去 [Greasy Fork](http://greasyfork.icu/scripts/456077) 安装脚本。
## 兼容性
> 如果你有能力解决兼容性问题,欢迎 PR。
| | **Chrome** | **Microsoft Edge** | **Firefox** | **Safari** |
|-----------------------|:----------:|:------------------:|:-----------:|:----------:|
| **Tampermonkey** | OK | OK | OK | NG |
| **Violentmonkey(*)** | OK | OK | OK | - |
| **Greasemonkey** | - | - | NG | - |
| **Userscripts** | - | - | - | NG |
| **ScriptCat(脚本猫)** | NG | NG | NG | - |
*: ViolentMoney 无法逐字打印,因为它不支持 stream 响应类型[^vm].
[^vm]: https://violentmonkey.github.io/api/gm/#gm_xmlhttprequest
## 贡献
本项目现在使用 [vite-plugin-monkey](https://github.com/lisonge/vite-plugin-monkey) 构建,开发过程相关问题在[该项目的文档](https://github.com/lisonge/vite-plugin-monkey#some-note)中都有解答。
## 致谢
- 本项目受 [wong2/chat-gpt-google-extension](https://github.com/wong2/chat-gpt-google-extension) 启发。
- 感谢 [@duck123ducker](https://github.com/duck123ducker) 贡献的对 DeepL 翻译器的支持([#9](https://github.com/zhengbangbo/chat-gpt-userscript/pull/9)).
- 感谢 [bigonion](http://greasyfork.icu/users/827969),本项目接收处理 stream 类型数据部分借鉴了 [chatGPT tools Plus ++](http://greasyfork.icu/scripts/456131/code?version=1127217)。