Linux Do Summary

Add button to summarize and toggle content of the main post.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
Raimbault
Усталяванняў за дзень
0
Усяго ўсталяванняў
28
Рэйтынг
0 0 0
Версія
3.0
Створаны
04.04.2024
Абноўлены
17.04.2024
Памер
11.1 КБ
Ліцэнзія
MIT
Ужываецца на

这个插件旨在总结论坛主帖的内容,用户可以通过点击“总结”按钮来实现对主帖内容的总结,总结完成会直接替换原文显示。再次点击,则会恢复显示原文(类似于Edge翻译的功能)。

该脚本支持图像识别,推荐使用 gpt-4 或 gemini-pro-1.5 等全模态模型,api请求默认的OpenAI格式,非OpenAI格式请使用oneapi中转。

注意:3.0版本简化了使用步骤,在首次使用时,直接点击总结按钮会直接弹窗提示用户输入相关值并自动检测是否可用,已不再需要通过控制台输入了。

2.0及更老的版本使用前需浏览器打开linux.do论坛,F12打开控制台后,将下面三行代码修改后复制粘贴到控制台回车保存

localStorage.setItem('apikey', 'sk-replace-with-your-key');
localStorage.setItem('base_url', 'https://api.openai.com/v1/chat/completions');
localStorage.setItem('model', 'gpt-4');

同样在控制台可通过下面的命令查看是否保存成功,成功会返回对应的值

console.log(localStorage.getItem('base_url'));
console.log(localStorage.getItem('apikey'));
console.log(localStorage.getItem('model'));