From 64eb2493eb7b4dec120044be6d3d6a50c5985c0d Mon Sep 17 00:00:00 2001 From: neon798 <209852807+neon798@users.noreply.github.com> Date: Tue, 7 Jul 2026 06:56:34 -0600 Subject: [PATCH] feat: Neonwolf settings section in the preferences pane MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-5 of the Grok batch (Grok correctly bounced it — the pref pane lives in patches/pref-pane/, outside its file scope). Adds a "Shields & updates" section to the Neonwolf (paneLibrewolf) preferences pane: - Block ads and trackers (native uBO engine) — one checkbox flipping the three enforcement prefs (ubo.network + ubo.cosmetic + content.protection.enabled), mirroring the Shields panel's ads category. - Automatically refresh filter lists (neonwolf.shields.lists.autoRefresh) + "Refresh lists now" button (neonwolf.shields.lists.refreshNow) + a live last-refreshed label (observes lastRefresh; epoch SECONDS). - Check for new Neonwolf versions (neonwolf.update.checkEnabled) with a note that updates are notify-only. Wired directly to prefs in librewolf.js (not setting-groups, since the ads toggle is multi-pref and refresh is a one-shot). Built + Marionette-validated: all controls present, ads toggle flips all three prefs, refresh-now fires. Co-Authored-By: Claude Opus 4.8 --- patches/pref-pane/librewolf.css | 15 +++++ patches/pref-pane/librewolf.inc.xhtml | 23 +++++++ patches/pref-pane/librewolf.js | 93 +++++++++++++++++++++++++++ 3 files changed, 131 insertions(+) diff --git a/patches/pref-pane/librewolf.css b/patches/pref-pane/librewolf.css index 5ed5763d..4f207df0 100644 --- a/patches/pref-pane/librewolf.css +++ b/patches/pref-pane/librewolf.css @@ -28,3 +28,18 @@ .neonwolf-pwmgr-list > .neonwolf-pwmgr-link { margin-block: 4px; } +.neonwolf-settings-heading { + font-weight: 600; + margin-block: 12px 4px; +} +.neonwolf-settings-heading:first-child { + margin-top: 0; +} +.neonwolf-settings-row { + margin-top: 6px; + gap: 10px; +} +.neonwolf-settings-dim { + opacity: 0.7; + font-size: 0.9em; +} diff --git a/patches/pref-pane/librewolf.inc.xhtml b/patches/pref-pane/librewolf.inc.xhtml index 68a49fff..6fec295b 100644 --- a/patches/pref-pane/librewolf.inc.xhtml +++ b/patches/pref-pane/librewolf.inc.xhtml @@ -15,6 +15,29 @@