commit
ce076eec89
7 changed files with 47 additions and 3 deletions
|
|
@ -1,6 +1,11 @@
|
|||
#  ThunderAI Release Notes
|
||||
|
||||
|
||||
<h2>Version 1.0.6 - 08/05/2024</h2>
|
||||
<ul>
|
||||
<li>Correctly handling a change in the ChatGPT web interface. See issue <a href="https://github.com/micz/ThunderAI/issues/43">#43</a></li>
|
||||
<li>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.</li>
|
||||
</ul>
|
||||
<h2>Version 1.0.5 - 03/05/2024</h2>
|
||||
<ul>
|
||||
<li>Fixed the handling of ChatGPT-4 in a large window. See issue <a href="https://github.com/micz/ThunderAI/issues/38">#38</a></li>
|
||||
|
|
|
|||
|
|
@ -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": ""
|
||||
|
|
|
|||
|
|
@ -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": ""
|
||||
|
|
|
|||
|
|
@ -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 <style> to the page's <head>
|
||||
document.head.appendChild(style);
|
||||
|
||||
|
|
@ -150,6 +151,16 @@ function addCustomDiv(prompt_action,tabId) {
|
|||
status_page_div.innerHTML = '<a href="https://micz.it/thunderdbird-addon-thunderai/status/">'+ mztaStatusPageDesc +'</a>';
|
||||
fixedDiv.appendChild(status_page_div);
|
||||
|
||||
//force completion
|
||||
var force_completion_div = document.createElement('div');
|
||||
force_completion_div.id = 'mzta-force-completion';
|
||||
force_completion_div.innerHTML = mztaForceCompletionDesc;
|
||||
force_completion_div.title = mztaForceCompletionTitle;
|
||||
force_completion_div.addEventListener('click', function() {
|
||||
operation_done();
|
||||
});
|
||||
fixedDiv.appendChild(force_completion_div);
|
||||
|
||||
// span for the text
|
||||
var curr_msg = document.createElement('span');
|
||||
curr_msg.id='mzta-curr_msg';
|
||||
|
|
@ -236,6 +247,7 @@ function operation_done(){
|
|||
document.getElementById('mzta-curr_msg').innerHTML = browser.i18n.getMessage("chatgpt_win_job_completed")+"<br>";
|
||||
document.getElementById('mzta-btn_ok').style.display = 'inline';
|
||||
document.getElementById('mzta-loading').style.display = 'none';
|
||||
document.getElementById('mzta-force-completion').style.display = 'none';
|
||||
chatpgt_scrollToBottom();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
"name": "ThunderAI",
|
||||
"description": "__MSG_extensionDescription__",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"author": "Mic (m@micz.it)",
|
||||
"homepage_url": "https://micz.it/thunderdbird-addon-thunderai/",
|
||||
"browser_specific_settings": {
|
||||
|
|
|
|||
|
|
@ -162,6 +162,8 @@ async function openChatGPT(promptText, action, curr_tabId) {
|
|||
});
|
||||
|
||||
let pre_script = `let mztaStatusPageDesc="`+ browser.i18n.getMessage("prefs_status_page") +`";
|
||||
let mztaForceCompletionDesc="`+ browser.i18n.getMessage("chatgpt_force_completion") +`";
|
||||
let mztaForceCompletionTitle="`+ browser.i18n.getMessage("chatgpt_force_completion_title") +`";
|
||||
`;
|
||||
|
||||
browser.tabs.executeScript(createdTab.id, { code: pre_script + mzta_script, matchAboutBlank: false })
|
||||
|
|
|
|||
|
|
@ -7,6 +7,11 @@
|
|||
<body>
|
||||
<div id="miczBackPrefs"><a href="mzta-options.html">__MSG_backToOptionsText__</a></div>
|
||||
<div id="miczRelNotes"><h1>ThunderAI Release Notes</h1>
|
||||
<h2>Version 1.0.6 - 08/05/2024</h2>
|
||||
<ul>
|
||||
<li>Correctly handling a change in the ChatGPT web interface. See issue <a href="https://github.com/micz/ThunderAI/issues/43">#43</a></li>
|
||||
<li>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.</li>
|
||||
</ul>
|
||||
<h2>Version 1.0.5 - 03/05/2024</h2>
|
||||
<ul>
|
||||
<li>Fixed the handling of ChatGPT-4 in a large window. See issue <a href="https://github.com/micz/ThunderAI/issues/38">#38</a></li>
|
||||
|
|
|
|||
Loading…
Reference in a new issue