logoalt Hacker News

Esophagus4yesterday at 9:39 PM2 repliesview on HN

Awesome! So the agent has access to the DOM/JS running in the browser?

That’s one of my biggest headaches writing user scripts currently: I write the script in an IDE with Claude then copy it to the browser / manually test it in the browser, then copy the results back to Claude or tell it what went wrong.

Looking forward to trying this.


Replies

Zekioyesterday at 10:43 PM

to my knowledge all the major userscript extensions, at least allow watching for file changes so you don't have to copy it manually, so you can just refresh the page to test

mifydevyesterday at 10:12 PM

Yup, full access to DOM! Still needs a lot of optimizations, but the trick is that the agent reads the DOM as file, so it can grep parts of it naturally.