diff --git a/manifest.firefox.json b/manifest.firefox.json index bfe133a..f98a261 100644 --- a/manifest.firefox.json +++ b/manifest.firefox.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Silent Send", - "version": "0.9.25", + "version": "0.9.26", "description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.", "browser_specific_settings": { "gecko": { diff --git a/manifest.json b/manifest.json index 1bc547e..3bb099c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Silent Send", - "version": "0.9.25", + "version": "0.9.26", "description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.", "permissions": [ "storage", diff --git a/package.json b/package.json index 2c731e6..6c16bac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "silent-send", - "version": "0.9.25", + "version": "0.9.26", "private": true, "license": "MIT", "description": "Browser extension that substitutes personal data before sending to AI services", diff --git a/src/lib/document-scanner.js b/src/lib/document-scanner.js index 7135877..8add537 100644 --- a/src/lib/document-scanner.js +++ b/src/lib/document-scanner.js @@ -257,8 +257,8 @@ const DocumentScanner = { // Try to decompress if FlateDecode let content = streamData; - const filterMatch = str.slice(Math.max(0, match.index - 200), match.index) - .match(/\/Filter\s*\/FlateDecode/); + const dictSlice = str.slice(Math.max(0, match.index - 500), match.index); + const filterMatch = dictSlice.match(/\/Filter\s*(?:\/FlateDecode|\[\/FlateDecode\]|\[.*?\/FlateDecode.*?\])/); if (filterMatch) { try { diff --git a/src/options/options.html b/src/options/options.html index 87c3eb8..bcb5290 100644 --- a/src/options/options.html +++ b/src/options/options.html @@ -601,7 +601,7 @@ diff --git a/src/options/options.js b/src/options/options.js index 08964b0..c610ca3 100644 --- a/src/options/options.js +++ b/src/options/options.js @@ -28,6 +28,9 @@ document.addEventListener('DOMContentLoaded', async () => { $('#maxLogEntries').value = settings.maxLogEntries || 200; $('#browserSync').checked = settings.browserSync === true; + const { version } = api.runtime.getManifest(); + $('#footerVersion').textContent = `Silent Send v${version}`; + renderMappings(); renderPasswords(); renderDomains();