kapouer / node-webkitgtk

webkitgtk bindings for :rocket: Node.js
MIT License
189 stars 13 forks source link

add a repl #34

Closed kapouer closed 9 years ago

kapouer commented 9 years ago

Add a method .repl(opts) that takes nodejs repl options, overwrites eval so it is eval'd in the context of the current webkitgtk window, and runs javascript in the current window, as sync .run() scripts.

kapouer commented 9 years ago

Also a launcher will be useful !

webkitgtk-repl http://www.google.fr
www.google.fr > document.querySelectorAll('div').length
80
kapouer commented 9 years ago

webkitgtk-repl --display could also show the actual browser window

kapouer commented 9 years ago

Done in version 3.2.1