diff --git a/src/content/injector.js b/src/content/injector.js index 0e70c7b..08636a4 100644 --- a/src/content/injector.js +++ b/src/content/injector.js @@ -118,6 +118,8 @@ // Also log directly from the injector (content script world) // in case the background worker is asleep const replacements = event.data.replacements || []; + const settingsResult = await api.storage.local.get('ss_settings'); + const maxLog = settingsResult.ss_settings?.maxLogEntries || 100; for (const r of replacements) { const log = (await api.storage.local.get('ss_activity_log')).ss_activity_log || []; log.unshift({ @@ -131,8 +133,8 @@ pattern: r.pattern || '', url: location.href, }); - // Trim - if (log.length > 100) log.length = 100; + // Trim to user-configured max + if (log.length > maxLog) log.length = maxLog; await api.storage.local.set({ ss_activity_log: log }); } } diff --git a/src/popup/popup.html b/src/popup/popup.html index aa26d08..c770461 100644 --- a/src/popup/popup.html +++ b/src/popup/popup.html @@ -217,7 +217,7 @@ Auto-redact detected PII Replace detected PII with placeholders on send - +
diff --git a/src/popup/popup.js b/src/popup/popup.js index 7cddb6d..c900149 100644 --- a/src/popup/popup.js +++ b/src/popup/popup.js @@ -216,7 +216,7 @@ async function initUnlockedUI() { // Load options tab settings $('#optAutoRedact').checked = settings.autoRedact !== false; $('#optAutoDetect').checked = settings.autoDetect !== false; - $('#optAutoRedact').checked = settings.autoRedactDetected !== false; + $('#optAutoRedactDetected').checked = settings.autoRedactDetected !== false; $('#optHighlights').checked = settings.showHighlights || false; $('#optDocPreview').checked = settings.docScanPreview !== false; $('#optProperNouns').checked = settings.detectProperNouns || false; @@ -225,7 +225,7 @@ async function initUnlockedUI() { const optHandlers = [ ['optAutoRedact', 'autoRedact'], ['optAutoDetect', 'autoDetect'], - ['optAutoRedact', 'autoRedactDetected'], + ['optAutoRedactDetected', 'autoRedactDetected'], ['optHighlights', 'showHighlights'], ['optDocPreview', 'docScanPreview'], ['optProperNouns', 'detectProperNouns'], diff --git a/test-suite.html b/test-suite.html new file mode 100644 index 0000000..7654017 --- /dev/null +++ b/test-suite.html @@ -0,0 +1,506 @@ + + + + + Silent Send - Feature Test Suite + + + +

Silent Send - Feature Test Suite

+

+ Load this page as an extension page (or inject via dev console on the Options page).
+ Tests exercise sync, encryption, storage, auto-redact, and domain management. +

+ + +
+
+ + + +