diff --git a/CHANGELOG.md b/CHANGELOG.md index 21430e97..b69fa898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ #  ThunderAI Release Notes +
__MSG_customPrompts_managePrompts_statement__
+|
+
+ + + [__MSG_customPrompts_form_label_ID_rules__] + |
+
+
+ + + |
+
+
+ + + |
+
+
+ + + + + |
+
|
+
+ + + |
+
+
+ + + |
+
| __MSG_customPrompts_form_label_ID__ | +__MSG_customPrompts_form_label_Name__ | +__MSG_customPrompts_form_label_Text__ | +__MSG_customPrompts_add_to_menu__ | +Properties | +__MSG_customPrompts_form_label_Action__ | +
|---|
__MSG_prefsInfoDesc_1__
diff --git a/options/mzta-options.js b/options/mzta-options.js
index 1d443b30..394b0ca6 100644
--- a/options/mzta-options.js
+++ b/options/mzta-options.js
@@ -93,4 +93,16 @@ document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll(".option-input").forEach(element => {
element.addEventListener("change", saveOptions);
});
+ document.getElementById('btnManagePrompts').addEventListener('click', () => {
+ // check if the tab is already there
+ browser.tabs.query({url: browser.runtime.getURL('../customprompts/mzta-custom-prompts.html')}).then((tabs) => {
+ if (tabs.length > 0) {
+ // if the tab is already there, focus it
+ browser.tabs.update(tabs[0].id, {active: true});
+ } else {
+ // if the tab is not there, create it
+ browser.tabs.create({url: browser.runtime.getURL('../customprompts/mzta-custom-prompts.html')});
+ }
+ })
+ });
}, { once: true });
diff --git a/options/mzta-release-notes.css b/options/mzta-release-notes.css
index 1cd3e410..766207ad 100644
--- a/options/mzta-release-notes.css
+++ b/options/mzta-release-notes.css
@@ -1,3 +1,16 @@
+@media (prefers-color-scheme: dark) {
+ body {
+ background-color: rgb(35, 34, 43);
+ color: rgb(251, 251, 254);
+ }
+
+ a:link { color: #409EFF; }
+ a:visited { color: #409EFF; }
+ a:hover { color: #66B1FF; }
+ a:active { color: #66B1FF; }
+
+}
+
div#miczRelNotes{
padding: 10px;
}
diff --git a/options/mzta-release-notes.html b/options/mzta-release-notes.html
index e17bd08a..ce580c4d 100644
--- a/options/mzta-release-notes.html
+++ b/options/mzta-release-notes.html
@@ -10,7 +10,13 @@