From 55692e7ebdf4951404084b997bae834e518cb9d5 Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 18 Apr 2024 22:40:36 +0200 Subject: [PATCH] added link to the status page. fixes #28 --- _locales/en/messages.json | 5 +++++ _locales/it/messages.json | 5 +++++ js/mzta-chatgpt.js | 8 ++++++++ mzta-background.js | 5 ++++- options/mzta-options.css | 7 +++++++ options/mzta-options.html | 1 + 6 files changed, 30 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index aa9ce75b..2410cbab 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -99,6 +99,11 @@ "description": "" }, + "prefs_status_page": { + "message": "Service Status", + "description": "" + }, + "prefs_OptionText_chatgpt_win_text": { "message": "ChatGPT window dimensions", "description": "" diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 8ccf6c09..d49507e6 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -99,6 +99,11 @@ "description": "" }, + "prefs_status_page": { + "message": "Stato del servizio", + "description": "" + }, + "prefs_OptionText_chatgpt_win_text": { "message": "Dimensioni della finestra di ChatGPT", "description": "" diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 25207faf..bd9a115a 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -117,6 +117,8 @@ function addCustomDiv(prompt_action,tabId) { style.innerHTML += "#mzta-loading{height:50px;display:inline-block;}"; 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;}"; // Add