diff --git a/manifest.firefox.json b/manifest.firefox.json index 960868e..917c622 100644 --- a/manifest.firefox.json +++ b/manifest.firefox.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Silent Send", - "version": "2.0.10", + "version": "2.0.11", "description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.", "browser_specific_settings": { "gecko": { @@ -86,7 +86,7 @@ ], "web_accessible_resources": [ { - "resources": ["src/content/content.js"], + "resources": ["src/content/content.js", "src/content/early-hook.js"], "matches": [""] } ] diff --git a/manifest.json b/manifest.json index 6a3f500..608598c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Silent Send", - "version": "2.0.10", + "version": "2.0.11", "description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.", "permissions": [ "storage", @@ -78,7 +78,7 @@ ], "web_accessible_resources": [ { - "resources": ["src/content/content.js"], + "resources": ["src/content/content.js", "src/content/early-hook.js"], "matches": [""] } ] diff --git a/package.json b/package.json index 617a43e..b78dfe4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "silent-send", - "version": "2.0.10", + "version": "2.0.11", "private": true, "license": "BSL-1.1", "description": "Browser extension that substitutes personal data before sending to AI services", diff --git a/src/content/early-hook.js b/src/content/early-hook.js new file mode 100644 index 0000000..d68dafe --- /dev/null +++ b/src/content/early-hook.js @@ -0,0 +1,23 @@ +/** + * Silent Send - Early Fetch Hook + * + * Injected synchronously BEFORE any page JavaScript to capture the + * real fetch() and XMLHttpRequest before frameworks (Next.js, React) + * can store their own references. + * + * Must be loaded as an external