Fix PDF decompression, add proper noun detection toggle, bump to 0.9.25

- document-scanner.js: Add missing await on _inflateSync() call — FlateDecode
  streams were not being decompressed because the async function was called
  without await, causing decompressed to hold a Promise instead of data
- content.js, storage.js, options.html, options.js: Gate proper noun / capital
  letter detection behind a new detectProperNouns setting (default off); was
  previously always-on causing noisy false-positive warnings on AI thinking
  output and common capitalized words
- Bump version 0.9.23 → 0.9.25

https://claude.ai/code/session_01ReZUeR1nrYzJeX7fTqwXMw
This commit is contained in:
Claude
2026-03-29 21:09:49 +00:00
parent 8a9736d6a3
commit 4b494b5eab
8 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -265,7 +265,7 @@ const DocumentScanner = {
const compressed = new Uint8Array(
[...streamData].map(c => c.charCodeAt(0))
);
const decompressed = this._inflateSync(compressed);
const decompressed = await this._inflateSync(compressed);
if (decompressed) {
content = new TextDecoder('latin1').decode(decompressed);
}
+1
View File
@@ -36,6 +36,7 @@ const DEFAULT_SETTINGS = {
revealMode: false,
secretScanning: true,
autoDetect: true,
detectProperNouns: false,
autoRedactDetected: true,
autoAddDetected: true,
maxLogEntries: 200,