diff --git a/_locales/en/messages.json b/_locales/en/messages.json index be1df206..5eaa8883 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -84,6 +84,16 @@ "description": "" }, + "chatgpt_win_custom_text": { + "message": "Insert here the additional text for the prompt.", + "description": "" + }, + + "chatgpt_win_send": { + "message": "Send", + "description": "" + }, + "chatgpt_use_gpt35": { "message": "Use GPT3.5", "description": "" diff --git a/_locales/it/messages.json b/_locales/it/messages.json index dacedcad..1c189353 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -84,6 +84,16 @@ "description": "" }, + "chatgpt_win_custom_text": { + "message": "Inserisci qui il testo aggiuntivo per il prompt.", + "description": "" + }, + + "chatgpt_win_send": { + "message": "Invia", + "description": "" + }, + "chatgpt_use_gpt35": { "message": "Usa GPT3.5", "description": "" diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index ecee2635..0dc0f114 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -22,6 +22,7 @@ export const mzta_script = ` let force_go = false; +let current_message = null; async function chatgpt_sendMsg(msg, method ='') { const textArea = document.querySelector('form textarea'), @@ -111,15 +112,19 @@ function chatpgt_scrollToBottom () { function addCustomDiv(prompt_action,tabId) { // Create