chatgpt-prompts

在 ChatGPT 输入框中输入 '/' 时列出提示词(Display a list of prompts When '/' is entered in the ChatGPT input box)

< Feedback op chatgpt-prompts

Recensie: Goed - het script werkt zoals het hoort

§
Geplaatst: 16-06-2023

function showDropdown(language) {

// ... 其他代码省略

const prompts = CHAT_GPT_PROMPTS.filter(prompt => prompt.language === language);

// ... 其他代码省略

for (const prompt of prompts) {
const option = document.createElement('option');
option.text = prompt.label;
option.value = prompt.value;
option.title = option.value; // 这会将鼠标悬停时的浮窗内容设为提示词的内容
dropdown.add(option);
}

// ... 其他代码省略
}
添加鼠标悬停显示的功能

Reactie plaatsen

Log in om antwoord te geven.