From c2e2336f4d806507da2dc3d7fdde9e51fa1a2020 Mon Sep 17 00:00:00 2001 From: mic Date: Sun, 22 Feb 2026 23:07:51 +0100 Subject: [PATCH] Added "Antispam by ThunderAI" --- _locales/en/messages.json | 4 ++++ js/mzta-compose-script.js | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index c6aacb70..bfc1d731 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1897,6 +1897,10 @@ "message": "Spam check in progress...", "description": "" }, + "antispam_by": { + "message": "Antispam by", + "description": "" + }, "prefs_THStats_1": { "message": "Do you want beautiful statistics about your emails?", "description": "" diff --git a/js/mzta-compose-script.js b/js/mzta-compose-script.js index e30298fd..7dfd4168 100644 --- a/js/mzta-compose-script.js +++ b/js/mzta-compose-script.js @@ -641,8 +641,13 @@ switch (message.command) { loadingImg.src = browser.runtime.getURL("/images/loading.gif"); loadingImg.style.cssText = "height: 16px; width: 16px;"; + const brandingProgress = document.createElement('span'); + brandingProgress.textContent = browser.i18n.getMessage("antispam_by") + " ThunderAI"; + brandingProgress.style.cssText = 'margin-left: auto; font-style: italic; font-size: 11px; opacity: 0.7;'; + containerProgress.appendChild(loadingImg); containerProgress.appendChild(textProgress); + containerProgress.appendChild(brandingProgress); document.body.insertBefore(containerProgress, document.body.firstChild); return Promise.resolve(true); @@ -693,9 +698,13 @@ switch (message.command) { reasonText.textContent = browser.i18n.getMessage("Explanation") + ": " + data.explanation; } + const branding = document.createElement('span'); + branding.textContent = browser.i18n.getMessage("antispam_by") + " ThunderAI"; + branding.style.cssText = 'margin-left: auto; font-style: italic; font-size: 11px; opacity: 0.7;'; + const closeBtn = document.createElement('span'); closeBtn.textContent = '×'; - closeBtn.style.cssText = 'margin-left: auto; cursor: pointer; font-weight: bold; font-size: 16px; padding: 0 5px;'; + closeBtn.style.cssText = 'cursor: pointer; font-weight: bold; font-size: 16px; padding: 0 5px;'; closeBtn.title = browser.i18n.getMessage("chatgpt_win_close"); closeBtn.onclick = function() { container.remove(); @@ -704,6 +713,7 @@ switch (message.command) { container.appendChild(scoreText); container.appendChild(reasonText); + container.appendChild(branding); container.appendChild(closeBtn); document.body.insertBefore(container, document.body.firstChild);