Chrome: Call Javascript function from (system) command line? -
i need call javascript function website running in google chrome / chromium command line.
is there possibility access on developer tools outside via command line? there extension use execute code?
the convenient way have access chrome developer console command line.
edit:
to make more clear: let’s website i’m on has function defined:
function hello() { alert("hello"); }
i call function, don’t have access developer tools in chrome. can access mac os x terminal (via ssh). it’s setup in gallery without keyboard. kind of pipe may needed.
after more research found crconsole, can used execute code in google chrome.
chrome has started this:
open -a "google chrome" --args --remote-debugging-port=9222
Comments
Post a Comment