On Sunday, April 24, 2022 at 8:05:54 AM UTC-5, Arno Welzel wrote:
luserdroog:
Not sure if this is OT as it's more about the operating environment
than the language per se, but ... I've written some javascript to
extract data from a webpage DOM and present it in a format more
to my liking. I can run it on a desktop or laptop by loading the
web page in Firefox and pasting my script into the console.
But none of the browsers on my phone offer a javascript console.
Does anyone know of a workaround for this or and Android browser
with more hackability?
Nope. As far I know all mobile browsers rely on desktop computers via
USB to provide debugging via the desktop version of the respective browser.
Thanks, I've turned to a more elaborate, but probably more fun route.
I installed Fdroid and then Termux and inside Termux I got emacs,
git, and nodejs appearing to work (still need to get evil mode going).
So I can either save the page from the browser and then manipulate
the saved html, or fetch the page without a browser and use an html
parser or something like `cheerio` to generate a DOM that I can then
query.
My other option is to write my own html parser in like C or something.
That sounds like a lotta work, sigh.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)