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

fix: restore working injector + add get:decrypted-config handler, bump 0.9.19
This commit is contained in:
Outis
2026-03-29 14:07:38 -04:00
committed by GitHub
6 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "Silent Send", "name": "Silent Send",
"version": "0.9.18", "version": "0.9.19",
"description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.", "description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.",
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "Silent Send", "name": "Silent Send",
"version": "0.9.18", "version": "0.9.19",
"description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.", "description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.",
"permissions": [ "permissions": [
"storage", "storage",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "silent-send", "name": "silent-send",
"version": "0.9.18", "version": "0.9.19",
"private": true, "private": true,
"license": "MIT", "license": "MIT",
"description": "Browser extension that substitutes personal data before sending to AI services", "description": "Browser extension that substitutes personal data before sending to AI services",
+11
View File
@@ -164,6 +164,17 @@ api.runtime.onMessage.addListener((message, sender, sendResponse) => {
}); });
const messageHandlers = { const messageHandlers = {
async 'get:decrypted-config'(_message, _sender, sendResponse) {
try {
const mappings = await Storage.getMappings();
const identity = await Storage.getIdentity();
const settings = await Storage.getSettings();
sendResponse({ mappings, identity, settings });
} catch {
sendResponse(null);
}
},
async 'substitution:performed'(message, sender) { async 'substitution:performed'(message, sender) {
const tabId = sender.tab?.id; const tabId = sender.tab?.id;
if (tabId == null) return; if (tabId == null) return;
+3 -8
View File
@@ -118,8 +118,6 @@
// Also log directly from the injector (content script world) // Also log directly from the injector (content script world)
// in case the background worker is asleep // in case the background worker is asleep
const replacements = event.data.replacements || []; 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) { for (const r of replacements) {
const log = (await api.storage.local.get('ss_activity_log')).ss_activity_log || []; const log = (await api.storage.local.get('ss_activity_log')).ss_activity_log || [];
log.unshift({ log.unshift({
@@ -133,8 +131,8 @@
pattern: r.pattern || '', pattern: r.pattern || '',
url: location.href, url: location.href,
}); });
// Trim to user-configured max // Trim
if (log.length > maxLog) log.length = maxLog; if (log.length > 200) log.length = 200;
await api.storage.local.set({ ss_activity_log: log }); await api.storage.local.set({ ss_activity_log: log });
} }
} }
@@ -154,10 +152,7 @@
const val = changes.ss_identity.newValue; const val = changes.ss_identity.newValue;
if (!val?._ssLocalEncrypted) msg.identity = mergeProfiles(val); if (!val?._ssLocalEncrypted) msg.identity = mergeProfiles(val);
} }
if (changes.ss_settings) { if (changes.ss_settings) msg.settings = changes.ss_settings.newValue;
const val = changes.ss_settings.newValue;
if (!val?._ssLocalEncrypted) msg.settings = val;
}
// Only post if we have something meaningful to send // Only post if we have something meaningful to send
if (msg.mappings || msg.identity || msg.settings) { if (msg.mappings || msg.identity || msg.settings) {
+1 -1
View File
@@ -631,7 +631,7 @@
</section> </section>
<footer> <footer>
<p>Silent Send v0.9.18</p> <p>Silent Send v0.9.19</p>
<p style="font-size:11px;color:#9ca3af;margin-top:6px;max-width:600px"> <p style="font-size:11px;color:#9ca3af;margin-top:6px;max-width:600px">
Silent Send is a convenience tool, not a security guarantee. Third-party sites may change how they send data at any time, which can cause missed substitutions without warning. You are responsible for verifying your data before sending. See the <a href="https://github.com/outis1one/silent-send/blob/main/LICENSE" target="_blank" style="color:#6b7280">LICENSE</a> for full terms. Silent Send is a convenience tool, not a security guarantee. Third-party sites may change how they send data at any time, which can cause missed substitutions without warning. You are responsible for verifying your data before sending. See the <a href="https://github.com/outis1one/silent-send/blob/main/LICENSE" target="_blank" style="color:#6b7280">LICENSE</a> for full terms.
</p> </p>