logoalt Hacker News

DrStartupyesterday at 9:16 PM2 repliesview on HN

Setup a quick CDP connection. Have Claude Code attach and inject JS into Page.addScriptToEvaluateOnNewDocument. Loads before the page.

Typical early hooks: • fetch wrapper • XMLHttpRequest.prototype.open/send wrapper • WebSocket constructor wrapper • history.pushState/replaceState wrapper • EventTarget.addEventListener wrapper (optional, heavy) • MutationObserver for DOM diffs • Error + unhandledrejection capture


Replies

HumanOstrichyesterday at 10:09 PM

This is irrelevant to the article and discussions here. Weird copypasta bullet points too.

shj2105yesterday at 9:22 PM

what would this do?