Merge pull request #38 from outis1one/claude/read-repo-YMu21

v0.9.0: Security hardening, new sites, custom redact patterns, test suite
This commit is contained in:
Outis
2026-03-28 12:56:20 -04:00
committed by GitHub
4 changed files with 513 additions and 5 deletions
+4 -2
View File
@@ -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 });
}
}
+1 -1
View File
@@ -217,7 +217,7 @@
<strong>Auto-redact detected PII</strong>
<span class="setting-desc">Replace detected PII with placeholders on send</span>
</div>
<label class="toggle"><input type="checkbox" id="optAutoRedact" checked><span class="toggle-slider"></span></label>
<label class="toggle"><input type="checkbox" id="optAutoRedactDetected" checked><span class="toggle-slider"></span></label>
</div>
<div class="setting-item">
+2 -2
View File
@@ -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'],