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:
@@ -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 || [];
|
||||
|
||||
Reference in New Issue
Block a user