🏠 返回首頁 

ChatGPT-academic-prompt-helper

项目主页:https://github.com/ZinYY/chatgpt-academic-prompt-helper。 【ChatGPT 学术小助手】可以为你带来更好的网页版chatgpt使用体验:快速地添加快捷指令prompts。 本项目是一个油猴脚本 (Tampermonkey),旨在便于网页版 Chatgpt 的 prompt 输入,并内置了一些常用的学术 prompt 模板。 【Usage】【打开 prompt 面板】:单击侧边栏的 “快捷指令” 按钮,或者用快捷键 `command+shift+F` (Windows 用户使用 `ctrl+shift+F`)。 【输入 prompt】: 单击想要输入的 prompt 即可。prompt 会添加在输入框之前。 【关闭 prompt 面板】: 使用快捷键 `command+shift+F`, 或是按下 `ESC` 按键即可。 【自定义 prompt】: 自行修改 `chatgpt_academic_helper.js` 文件中的内容即可。

< Feedback on ChatGPT-academic-prompt-helper

Question/comment

§
Posted: 04.12.2024

现在点击之后没有反应,是因为chatgpt网页的HTML结构变了,可以将160-167行的代码:

                var textareaEle_1 = document.querySelector("textarea");
textareaEle_1.value = decodeURI(value) + textareaEle_1.value;
textareaEle_1.dispatchEvent(
new Event("input", { bubbles: true })
);
setTimeout(function () {
textareaEle_1.focus();
}, 1e3);

改成

                const parentDiv = document.getElementById('prompt-textarea');
const newParagraph = document.createElement('p');
newParagraph.textContent = decodeURI(value);
parentDiv.insertBefore(newParagraph, parentDiv.firstChild);
ZinYYAuthor
§
Posted: 24.12.2024

最新版本已经更新啦(不过为了不覆盖大家自定义的prompt,没有更新版本号,因此要手动重装一下)

Post reply

Sign in to post a reply.