Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #40850 > unrolled thread

Running user scripts in an Android browser?

Started byluserdroog <luser.droog@gmail.com>
First post2022-04-20 10:29 -0700
Last post2022-07-06 09:15 -0700
Articles 6 — 4 participants

Back to article view | Back to comp.lang.javascript


Contents

  Running user scripts in an Android browser? luserdroog <luser.droog@gmail.com> - 2022-04-20 10:29 -0700
    Re: Running user scripts in an Android browser? retired developer <retired.developer@protonmail.com> - 2022-04-21 00:59 +0200
      Re: Running user scripts in an Android browser? luserdroog <luser.droog@gmail.com> - 2022-04-23 18:55 -0700
    Re: Running user scripts in an Android browser? Arno Welzel <usenet@arnowelzel.de> - 2022-04-24 15:05 +0200
      Re: Running user scripts in an Android browser? luserdroog <luser.droog@gmail.com> - 2022-05-02 22:01 -0700
    Re: Running user scripts in an Android browser? Härra Rabmo <ingel1983912@gmail.com> - 2022-07-06 09:15 -0700

#40850 — Running user scripts in an Android browser?

Fromluserdroog <luser.droog@gmail.com>
Date2022-04-20 10:29 -0700
SubjectRunning user scripts in an Android browser?
Message-ID<066f64e3-47d9-46c4-b773-0d1e4150dde4n@googlegroups.com>
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?

[toc] | [next] | [standalone]


#40852

Fromretired developer <retired.developer@protonmail.com>
Date2022-04-21 00:59 +0200
Message-ID<jcbhilFtgtsU1@mid.individual.net>
In reply to#40850
On 20.04.22 19:29, luserdroog wrote:

> 
> 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?

what about using google and the keywords like:
"chrome developer tools on mobile"
of course, without quotes?

there are several hits, like:

https://dev.to/dev0x0/using-google-chrome-console-on-any-mobile-device-9ec

https://support.dynamicyield.com/hc/en-us/community/posts/360009429757-How-to-Debug-Mobile-Experiences-in-the-Desktop-Chrome-s-Developer-Tools-


Have a nice day...

-- 
An old Windows has old security holes.
A new Windows has new security holes.
Another OS has other security holes.
For safety you must care yourself.

[toc] | [prev] | [next] | [standalone]


#40855

Fromluserdroog <luser.droog@gmail.com>
Date2022-04-23 18:55 -0700
Message-ID<2ca35599-3ef0-41e1-a984-76de38591e5fn@googlegroups.com>
In reply to#40852
On Wednesday, April 20, 2022 at 5:59:41 PM UTC-5, retired developer wrote:
> On 20.04.22 19:29, luserdroog wrote: 
> 
> > 
> > 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?
> what about using google and the keywords like: 
> "chrome developer tools on mobile" 
> of course, without quotes? 
> 
> there are several hits, like: 
> 
> https://dev.to/dev0x0/using-google-chrome-console-on-any-mobile-device-9ec 
> 
> https://support.dynamicyield.com/hc/en-us/community/posts/360009429757-How-to-Debug-Mobile-Experiences-in-the-Desktop-Chrome-s-Developer-Tools- 
> 
> 
> Have a nice day... 
> 

Thanks, with much fiddling I was able to get it to work but only when 
connected over USB to a laptop also running chrome. Not quite the
workflow I was hoping for. So I put my code in an email to the website
support with screenshots and an explanation of why their output wasn't 
quite right and needed help of this sort.

So, maybe they'll fix it for me and then I won't have to run a user script 
at all. fingers crossed.

[toc] | [prev] | [next] | [standalone]


#40856

FromArno Welzel <usenet@arnowelzel.de>
Date2022-04-24 15:05 +0200
Message-ID<jcl09aFnngdU3@mid.individual.net>
In reply to#40850
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.


-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#40859

Fromluserdroog <luser.droog@gmail.com>
Date2022-05-02 22:01 -0700
Message-ID<0ef1b3df-e756-44a0-a96f-10c7de88d7a0n@googlegroups.com>
In reply to#40856
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.

[toc] | [prev] | [next] | [standalone]


#40973

FromHärra Rabmo <ingel1983912@gmail.com>
Date2022-07-06 09:15 -0700
Message-ID<5cf99298-a4d9-4063-91a6-60f57ab90349n@googlegroups.com>
In reply to#40850
Hey guy. Would You want to get rich with me doing programming? If yes, call me !!!!!!!!!

✆☎☏📱📞 : 372 53900660


luser...@gmail.com kirjutas Kolmapäev, 20. aprill 2022 kl 19:29:27 UTC+2:
> 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?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web