diff --git a/CHANGELOG.md b/CHANGELOG.md index 51da0e6..d3c8019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to MindTab will be documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). MindTab uses [Semantic Versioning](https://semver.org/). +## [1.2.1] — 2026-05-12 + +### Fixed + +- Issue #14, added `aria-live="polite"` (thanks @web3blind!) + +### Changed + +- Updated Extenstion name in docs to match store listing +- Bump version to 1.2.1 + --- ## [1.2.0] — 2026-05-16 diff --git a/README.md b/README.md index f4cd8da..4397e48 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ MindTab targets Firefox first. Install it from the [Firefox Add-ons store](https ### Chrome / Edge -Once it's on the Chrome Web Store, search for **"MindTab by Aster1630"** and click Add to Chrome. +Once it's on the Chrome Web Store, search for **MindTab** and click Add to Chrome. ### Loading it yourself (all browsers) diff --git a/content_scripts/maliciousAdBlocker.js b/content_scripts/maliciousAdBlocker.js index 0c8c382..6a2776c 100644 --- a/content_scripts/maliciousAdBlocker.js +++ b/content_scripts/maliciousAdBlocker.js @@ -35,11 +35,30 @@ function initAdBlocker() { scan(); let debounce; - const observer = new MutationObserver(() => { + const observer = new MutationObserver(mutations => { + // For attribute/characterData mutations the affected element may already + // be stamped with data-mt-checked from the initial scan. Clear the stamp + // so scan() will re-evaluate it with its updated href or text content. + for (const mutation of mutations) { + if (mutation.type === 'attributes' || mutation.type === 'characterData') { + const target = mutation.type === 'characterData' + ? mutation.target.parentElement + : mutation.target; + if (target && target.dataset) { + delete target.dataset.mtChecked; + } + } + } clearTimeout(debounce); debounce = setTimeout(scan, 400); }); - observer.observe(document.documentElement, { childList: true, subtree: true }); + observer.observe(document.documentElement, { + childList: true, + subtree: true, + attributes: true, + attributeFilter: ['href', 'src'], + characterData: true, + }); } if (window.__MindTab?.ready) { diff --git a/content_scripts/toneTranslator.js b/content_scripts/toneTranslator.js index 85f821a..96ce741 100644 --- a/content_scripts/toneTranslator.js +++ b/content_scripts/toneTranslator.js @@ -251,7 +251,6 @@ function mtBuildPanel() { panel.id = 'mt-panel'; panel.setAttribute('role', 'complementary'); panel.setAttribute('aria-label', 'MindTab Writing Assistant'); - panel.setAttribute('aria-live', 'polite'); panel.innerHTML = `