From b9acd6d6775e4b64698f01efd775b74e2efcecdc Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 16 Apr 2026 18:10:04 +0000 Subject: [PATCH] Remove claude.ai/code skip The extension needs to work on claude.ai/code like every other site; the user toggles it off manually when needed. Dropping the host-level skip leaves the word-boundary mapping fix as the only behavior change on this branch. https://claude.ai/code/session_01Y2YprLMx348eWD5C9Z4zpV --- src/content/early-hook.js | 13 ------------- src/content/injector.js | 11 ----------- 2 files changed, 24 deletions(-) diff --git a/src/content/early-hook.js b/src/content/early-hook.js index ab4bb67..d68dafe 100644 --- a/src/content/early-hook.js +++ b/src/content/early-hook.js @@ -9,19 +9,6 @@ * because sites like claude.ai have strict CSP that blocks inline scripts. */ (function () { - // Claude Code (claude.ai/code) streams real file paths, shell commands, and - // tool-call traffic through the same HTTP surface as user messages. Any - // substitution there corrupts tool execution. We deliberately stay out of - // it entirely so the extension stays robust to API shape changes — the user - // handles redaction manually on this one app. - if ( - location.hostname === 'claude.ai' && - /^\/code(\/|$)/.test(location.pathname) - ) { - window.__ssSkipHost = true; - return; - } - window.__ssOriginalFetch = window.fetch; window.__ssOriginalXHROpen = XMLHttpRequest.prototype.open; window.__ssOriginalXHRSend = XMLHttpRequest.prototype.send; diff --git a/src/content/injector.js b/src/content/injector.js index 9d80fe9..e609d65 100644 --- a/src/content/injector.js +++ b/src/content/injector.js @@ -15,17 +15,6 @@ if (window.__silentSendInjected) return; window.__silentSendInjected = true; - // Skip Claude Code (web) entirely. Its tool-call traffic shares the HTTP - // surface with user messages; any selective walker becomes brittle the - // moment Anthropic changes a field name. Leaving the app untouched is the - // robust choice — the user handles redaction manually here. - if ( - location.hostname === 'claude.ai' && - /^\/code(\/|$)/.test(location.pathname) - ) { - return; - } - // Merge active profiles into flat identity object function mergeProfiles(data) { const profiles = data?.profiles || [];