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
This commit is contained in:
@@ -9,19 +9,6 @@
|
|||||||
* because sites like claude.ai have strict CSP that blocks inline scripts.
|
* because sites like claude.ai have strict CSP that blocks inline scripts.
|
||||||
*/
|
*/
|
||||||
(function () {
|
(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.__ssOriginalFetch = window.fetch;
|
||||||
window.__ssOriginalXHROpen = XMLHttpRequest.prototype.open;
|
window.__ssOriginalXHROpen = XMLHttpRequest.prototype.open;
|
||||||
window.__ssOriginalXHRSend = XMLHttpRequest.prototype.send;
|
window.__ssOriginalXHRSend = XMLHttpRequest.prototype.send;
|
||||||
|
|||||||
@@ -15,17 +15,6 @@
|
|||||||
if (window.__silentSendInjected) return;
|
if (window.__silentSendInjected) return;
|
||||||
window.__silentSendInjected = true;
|
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
|
// Merge active profiles into flat identity object
|
||||||
function mergeProfiles(data) {
|
function mergeProfiles(data) {
|
||||||
const profiles = data?.profiles || [];
|
const profiles = data?.profiles || [];
|
||||||
|
|||||||
Reference in New Issue
Block a user