Revert claude.ai/code to blanket skip

Drops the narrow field-based walker. Matching only known user-input
fields is brittle: the moment Anthropic renames prompt/input/messages
the walker silently stops substituting and real data leaks.

Preferring robustness over convenience here — the extension stays
dormant on claude.ai/code regardless of future API shape changes, and
users handle redaction manually on that one app. The word-boundary
mapping fix from the previous commit is unaffected.

https://claude.ai/code/session_01Y2YprLMx348eWD5C9Z4zpV
This commit is contained in:
Claude
2026-04-16 18:03:36 +00:00
parent 331b1cb2a2
commit f55f63c254
3 changed files with 33 additions and 86 deletions
+11
View File
@@ -15,6 +15,17 @@
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 || [];