Use JavaScriptCore for evaluation, with Uzbl.run()
authorDequis <dx@dxzone.com.ar>
Mon, 15 Jun 2009 23:37:55 +0000 (20:37 -0300)
committerDequis <dx@dxzone.com.ar>
Mon, 15 Jun 2009 23:37:55 +0000 (20:37 -0300)
commitfedfe2c06b3e01d5dede2cbab395a0ab48bb94e9
tree0de88a92485794a9c48ae876a708a748a9356208
parented39cbe56f8923407604a1306a179529521ecd26
Use JavaScriptCore for evaluation, with Uzbl.run()

Both "js" and "script" commands use eval_js(), which creates an instance
of the Uzbl object class (created by js_init()) which right now provides
only a run() method (handled by js_run_command()). After evaluating the
code, eval_js() removes the object so the scripts from the loaded page
can't access it.

eval_js() supports returning a string result, and you can use it with
uzblctrl to query the DOM. Uzbl.run() also returns a string, but the
only useful thing you can do right now with that is to print @uri or
other variables.
uzbl.c
uzbl.h