the idea is to open a webpage in a headless browser, run all the javascript and whatnot, and then ai-generate a program to translate the page as-displayed into a textonly format.
not great for everything, and it does, unfortunately need an LLM call to generate the translation program, but if you truly want to live in emacs, I've found it as a good stop-gap for certain pages that EWW cannot effectively render.
You don't need AI for that, this all can be done deterministically. I'm currently using Mac and using OSA layer I can easily grab the readable text out of DOM as it's rendered on the page to display in an Emacs buffer.
yes! this works for plain-text, like articles, but it's a bit tricky for menus and navigation. the challenge is that grabbing plain-text doesn't always translate the intent of a horizontal (or vertical navbar) into horizontally rendered text buttons
True. I suppose the use of small and cheap model to straighten them up is justified here. I think I'm gonna try to add that processing step, maybe it's cheap enough. It still worth to extract the plain text from the page properly, even if it sakes three-four-ten seconds.
not great for everything, and it does, unfortunately need an LLM call to generate the translation program, but if you truly want to live in emacs, I've found it as a good stop-gap for certain pages that EWW cannot effectively render.