Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This probably wouldn't be possible due to browser sandboxing.

You could however, use a tool like External Application Button [0] in order to send the URL of the page to a script/program, which in turn can make the body of the page parsable by downloading the URL it gets, automating some action on it. I use it pretty often to automate downloads with yt-dlp or opening a picture directly in GIMP from the browser, but since you're invoking a bash/python/whatever script, the possibilities are basically endless.

[0]: https://github.com/andy-portmen/external-application-button



> This probably wouldn't be possible due to browser sandboxing.

I’m curious about this comment. Surely this should be possible using accessibility hooks for a normal browser or in Nyxt via scripting, right?


> You could however, use a tool like External Application Button [0] in order to send the URL of the page to a script/program, which in turn can make the body of the page parsable by downloading the URL it gets, automating some action on it.

This works less well than it used to now that CMSs and blogs are now SPAs that render no text without javascript being enabled.


Yes, that is a shame, but that can be worked around by sending it to something like PhantomJS, headless Chromium, or any other scriptable browser that will actually run the JS on the page and render it in the background. Very heavy as you're basically running a full browser in the background, but totally doable.


I was thinking of running gnu binaries like that as a WASM compiled app/pwa




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: