Linux Do Summary

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

Verze ze dne 08. 04. 2024. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
Raimbault
Hodnocení
0 0 0
Verze
2.0
Vytvořeno
04. 04. 2024
Aktualizováno
08. 04. 2024
Size
8,2 KB
Licence
MIT
Spustit na

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

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

注意:使用前需浏览器打开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'));