Linux Do Summary

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
Raimbault
Dziennych instalacji
0
Wszystkich instalacji
28
Oceny
0 0 0
Wersja
3.0
Utworzono
04-04-2024
Zaktualizowano
17-04-2024
Rozmiar
11,1 KB
Licencja
MIT
Dotyczy

这个插件旨在总结论坛主帖的内容,用户可以通过点击“总结”按钮来实现对主帖内容的总结,总结完成会直接替换原文显示。再次点击,则会恢复显示原文(类似于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'));