diff --git a/CHANGELOG.md b/CHANGELOG.md
index 21430e97..9549b0b5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,11 @@
#  ThunderAI Release Notes
+
Version 1.0.6 - 08/05/2024
+
+- Correctly handling a change in the ChatGPT web interface. See issue #43
+- Added a button to force the completion to display the 'Use last answer' button if ChatGPT has finished its work but the button has not appeared.
+
Version 1.0.5 - 03/05/2024
- Fixed the handling of ChatGPT-4 in a large window. See issue #38
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index be1df206..7f30c614 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -89,6 +89,16 @@
"description": ""
},
+ "chatgpt_force_completion": {
+ "message": "force completion",
+ "description": ""
+ },
+
+ "chatgpt_force_completion_title": {
+ "message": "Click here to display the 'Use last answer' button if ChatGPT has finished its work but the button has not appeared.",
+ "description": ""
+ },
+
"msg_prompt_too_long": {
"message": "The text you provided is too long. You need to reduce it to use ChatGPT.",
"description": ""
diff --git a/_locales/it/messages.json b/_locales/it/messages.json
index dacedcad..2447deeb 100644
--- a/_locales/it/messages.json
+++ b/_locales/it/messages.json
@@ -89,6 +89,16 @@
"description": ""
},
+ "chatgpt_force_completion": {
+ "message": "forza il completamento",
+ "description": ""
+ },
+
+ "chatgpt_force_completion_title": {
+ "message": "Fai clic qui per visualizzare il pulsante 'Usa l'ultima risposta' se ChatGPT ha terminato il suo lavoro ma il pulsante non è apparso.",
+ "description": ""
+ },
+
"msg_prompt_too_long": {
"message": "Il testo che vuoi inviare a ChatGPT è troppo lungo. Devi ridurlo per poter procedere.",
"description": ""
diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js
index ecee2635..b11f53e5 100644
--- a/js/mzta-chatgpt.js
+++ b/js/mzta-chatgpt.js
@@ -46,7 +46,7 @@ async function chatgpt_isIdle() {
function chatgpt_getRegenerateButton() {
for (const mainSVG of document.querySelectorAll('main svg')) {
- if (mainSVG.querySelector('path[d*="M4.5 2.5C5.05228"]')) // regen icon found
+ if (mainSVG.querySelector('path[d*="M3.07 10.876C3.623"]')) // regen icon found
return mainSVG.parentNode.parentNode;
}
}
@@ -119,7 +119,8 @@ function addCustomDiv(prompt_action,tabId) {
style.innerHTML += "#mzta-model_warn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-height:100%px;min-width:30%;max-width:50%;padding:3px;border-radius:5px;text-align:center;background-color:#FFBABA;border:1px solid;font-size:13px;color:#D8000C;display:none;}";
style.innerHTML += "#mzta-btn_gpt35 {background-color: #007bff;border: none;color: white;padding: 2px 4px;text-align: center;text-decoration: none;display: none;font-size: 13px;margin-left: 4px;transition-duration: 0.4s;cursor: pointer;border-radius: 2px;}";
style.innerHTML += "#mzta-status-page{position:fixed;bottom:0;left:0;padding-left:5px;font-size:13px;font-style:italic;text-decoration:underline;color:#919191;}";
- style.innerHTML += "#mzta-status-page:hover{color:#007bff;}";
+ style.innerHTML += "#mzta-force-completion{cursor:pointer;position:fixed;bottom:0;right:0;padding-right:5px;font-size:13px;font-style:italic;text-decoration:underline;color:#919191;}";
+ style.innerHTML += "#mzta-status-page:hover, #mzta-force-completion:hover{color:#007bff;}";
// Add