edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] js command line access
@ 2015-09-25  7:25 Karl Dahlke
  2015-09-25  7:55 ` Kevin Carhart
  0 siblings, 1 reply; 4+ messages in thread
From: Karl Dahlke @ 2015-09-25  7:25 UTC (permalink / raw)
  To: Edbrowse-dev

Kevin wrote me in a pm, and I hope he doesn't mind me relaying here...

I created a crude JS console within edbrowse,
for use especially on getting the DOM to work.
I noticed that javaParseExecute will accept any string,
so I hooked into twoLetter, used a letter that wasn't in
use, and brought querying of objects into the edbrowse
command line, like...

* document.childNodes.length
23
* var blah = document.getElementsByTagName("INPUT")
ok
* blah.length
25
* blah[5].name
price_range

This is damn clever!
I mean really.
I'm thinking it should be part of the real program,
not as anything we would advertise, not a feature for the public,
but like the higher levels of db, just something for us.
What do others think of this idea?

It would have to be a 2 letter or multi letter command that casual users
wouldn't stumble on by accident.  Maybe jsca for javascript comand access.
Imagine stopping in the middle of a web page and poking around the dom.
For debugging, set a variable like innerHTML and see if the side effects really happen.
Or like yesterday I had a nasty email I wanted to unsubscribe from,
cause its just marketing crap,
and I pushed the button and js stopped because something
was missing in the dom.
Imagine I went to the js console and just put an object there, or whatever,
so js would be happy and send on my unsubscribe request.
That would be cool.
This was one of those forms that can't be done without js by the way,
so for now I'm still subscribed to their shit.
anyways, do people think a backdoor to the dom would be useful for us,
assuming the public wouldn't fall through it accidentally,
and if yes then perhaps Kevin you could send me a patch,
cause it sounds like you've already done most of the work.

Karl Dahlke

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-25 23:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-25  7:25 [Edbrowse-dev] js command line access Karl Dahlke
2015-09-25  7:55 ` Kevin Carhart
2015-09-25 22:16   ` Adam Thompson
2015-09-25 23:11     ` Kevin Carhart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).