From f8777d8fc7da1a3903d7794054319136ee01c959 Mon Sep 17 00:00:00 2001 From: mic Date: Mon, 6 May 2024 22:16:03 +0200 Subject: [PATCH] asking for a custom text if needed. fixes #32 --- js/mzta-chatgpt.js | 76 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 58 insertions(+), 18 deletions(-) diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 95a96785..9b1ac57c 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,17 +112,19 @@ function chatpgt_scrollToBottom () { function addCustomDiv(prompt_action,tabId) { // Create