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 });
}
}