Open-source AI browser agent for Chrome and Firefox (monorepo) ðŸ§
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
Style the Apocalypse Mode header button like Providers and Support
Emre Sokullu25ec9fe36b37
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 31bc94f6c..78e36dcb6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,6 +6,9 @@ This changelog was generated from the repository Git history and release tags. V## [Unreleased]+### Changed+- The Apocalypse Mode button at the top of Settings now looks like the Providers and Support buttons beside it: a plain line icon instead of the yellow ☢, and no yellow outline while Apocalypse Mode is on. Hovering it still shows whether Apocalypse Mode is on.+## [42.2.0] - 2026-10-20### Addeddiff --git a/src/chrome/src/ui/settings.css b/src/chrome/src/ui/settings.cssindex 1b975564e..046ae1911 100644--- a/src/chrome/src/ui/settings.css+++ b/src/chrome/src/ui/settings.css@@ -91,12 +91,6 @@ h1 a {}.support-link:hover { color: var(--accent); border-color: var(--accent); }.support-link svg { width: 14px; height: 14px; flex-shrink: 0; }-.apocalypse-icon { color: var(--warning); font-size: 15px; line-height: 1; }-.apocalypse-link[data-enabled="true"] {- color: var(--warning);- border-color: var(--warning);- background: rgba(255, 200, 112, 0.08);-}.visually-hidden {position: absolute;width: 1px;diff --git a/src/chrome/src/ui/settings.html b/src/chrome/src/ui/settings.htmlindex 63d655676..984112f27 100644--- a/src/chrome/src/ui/settings.html+++ b/src/chrome/src/ui/settings.html@@ -24,7 +24,7 @@<span data-i18n="st.tab.providers"></span></a><a id="apocalypse-mode-link" class="support-link apocalypse-link" href="apocalypse-mode.html" target="_blank" rel="noopener" aria-describedby="apocalypse-mode-status">- <span class="apocalypse-icon" aria-hidden="true">☢</span>+ <svg class="apocalypse-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><path d="M16.75 20.23A9.5 9.5 0 0 1 7.25 20.23L10 15.46A4 4 0 0 0 14 15.46Z"/><path d="M2.5 12A9.5 9.5 0 0 1 7.25 3.77L10 8.54A4 4 0 0 0 8 12Z"/><path d="M16.75 3.77A9.5 9.5 0 0 1 21.5 12L16 12A4 4 0 0 0 14 8.54Z"/></svg><span data-i18n="st.display.apocalypse_mode.label"></span></a><a class="support-link" href="https://webbrain.one/docs" target="_blank" rel="noopener noreferrer">diff --git a/src/firefox/src/ui/settings.css b/src/firefox/src/ui/settings.cssindex a4aa9ae2f..3aa71f139 100644--- a/src/firefox/src/ui/settings.css+++ b/src/firefox/src/ui/settings.css@@ -91,12 +91,6 @@ h1 a {}.support-link:hover { color: var(--accent); border-color: var(--accent); }.support-link svg { width: 14px; height: 14px; flex-shrink: 0; }-.apocalypse-icon { color: var(--warning); font-size: 15px; line-height: 1; }-.apocalypse-link[data-enabled="true"] {- color: var(--warning);- border-color: var(--warning);- background: rgba(255, 200, 112, 0.08);-}.visually-hidden {position: absolute;width: 1px;diff --git a/src/firefox/src/ui/settings.html b/src/firefox/src/ui/settings.htmlindex 950fa65a2..49f31c009 100644--- a/src/firefox/src/ui/settings.html+++ b/src/firefox/src/ui/settings.html@@ -24,7 +24,7 @@<span data-i18n="st.tab.providers"></span></a><a id="apocalypse-mode-link" class="support-link apocalypse-link" href="apocalypse-mode.html" target="_blank" rel="noopener" aria-describedby="apocalypse-mode-status">- <span class="apocalypse-icon" aria-hidden="true">☢</span>+ <svg class="apocalypse-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><path d="M16.75 20.23A9.5 9.5 0 0 1 7.25 20.23L10 15.46A4 4 0 0 0 14 15.46Z"/><path d="M2.5 12A9.5 9.5 0 0 1 7.25 3.77L10 8.54A4 4 0 0 0 8 12Z"/><path d="M16.75 3.77A9.5 9.5 0 0 1 21.5 12L16 12A4 4 0 0 0 14 8.54Z"/></svg><span data-i18n="st.display.apocalypse_mode.label"></span></a><a class="support-link" href="https://webbrain.one/docs" target="_blank" rel="noopener noreferrer">diff --git a/test/run.js b/test/run.jsindex dd3375204..9faa30255 100644--- a/test/run.js+++ b/test/run.js@@ -38171,9 +38171,15 @@ test('Apocalypse Mode keeps summary stats in its header and optional Wikipedia iconst tabsStart = settingsHtml.indexOf('<nav class="tabs"', headerStart);assert.ok(headerStart >= 0 && apocalypseLink > headerStart && supportLink > apocalypseLink && tabsStart > supportLink,`${prefix}: Apocalypse Mode must appear beside and before Support in the top header`);- assert.match(settingsHtml.slice(apocalypseLink, supportLink), /☢/, `${prefix}: Apocalypse Mode header link is missing its radioactive icon`);+ // A line icon like Providers and Support, without a highlight of its own.+ const apocalypseHeaderLink = settingsHtml.slice(apocalypseLink, supportLink);+ assert.match(apocalypseHeaderLink, /<svg class="apocalypse-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor"/,+ `${prefix}: Apocalypse Mode header link is missing its radiation line icon`);+ assert.doesNotMatch(apocalypseHeaderLink, /☢/, `${prefix}: Apocalypse Mode header link still uses the colored emoji icon`);+ assert.doesNotMatch(fs.readFileSync(path.join(ROOT, prefix, 'src/ui/settings.css'), 'utf8'), /\.apocalypse-(?:icon|link)\b[^{]*\{[^}]*var\(--warning\)/,+ `${prefix}: the Apocalypse Mode header link is highlighted unlike Providers and Support`);assert.match(pageHtml, /<header><span class="apocalypse-icon" aria-hidden="true">☢<\/span>/,- `${prefix}: Apocalypse Mode page header does not match the radioactive settings gateway icon`);+ `${prefix}: Apocalypse Mode page header lost its radioactive icon`);assert.match(pageHtml, /class="header-copy"[\s\S]*?data-i18n="ap\.title"[\s\S]*?data-i18n="ap\.subtitle"/,`${prefix}: Apocalypse Mode title and offline slogan are not grouped in the page header`);assert.match(apocalypseCopy, /'ap\.subtitle': 'WebBrain, ready when the internet isn’t\.'/,