The early hook approach (inline script, then external early-hook.js) kept breaking Firefox due to CSP restrictions and timing issues with the async external script load. Each fix for ChatGPT introduced a new regression for Firefox/Brave. Reverted to the original simple approach: - Injector reads storage, injects content.js via <script src="..."> - content.js captures window.fetch at load time and patches it - No inline scripts, no early hooks, no __ssOriginalFetch globals This is what worked on Claude.ai across all browsers before the ChatGPT fix attempts. ChatGPT support may need a different approach later (possibly using declarativeNetRequest for header-only changes, or a ChatGPT-specific content script), but it should not break the core functionality on Claude.ai. Kept the Request object handling in the fetch interceptor (needed for some frameworks) but removed all early hook dependencies. https://claude.ai/code/session_01SWSwDfMVij53bCTNSCLMwn
19 lines
573 B
JSON
19 lines
573 B
JSON
{
|
|
"name": "silent-send",
|
|
"version": "2.0.12",
|
|
"private": true,
|
|
"license": "BSL-1.1",
|
|
"description": "Browser extension that substitutes personal data before sending to AI services",
|
|
"scripts": {
|
|
"build:chrome": "./build.sh chrome",
|
|
"build:firefox": "./build.sh firefox",
|
|
"build": "./build.sh both",
|
|
"lint:firefox": "npx web-ext lint --source-dir dist/firefox",
|
|
"sign:firefox": "./sign-firefox.sh",
|
|
"run:firefox": "./build.sh firefox && npx web-ext run --source-dir dist/firefox"
|
|
},
|
|
"devDependencies": {
|
|
"web-ext": "^8.4.0"
|
|
}
|
|
}
|