Is there a way to send javascript commands to an open web page launched in a browser from a shell?
Say I have stackoverflow.com open with Chrome. Well, I would like to send something like
alert('hi!');
from the shell, something similar to the following:
$ send -t Chrome -w "stackoverflow.com" -c "alert('hi!')"
I was wondering because if I can write a warning (βhello!β) On the Chrome javascript console, I would have to do the same with a call somewhere, right?
I saw node.js, but I think this is not possible, please let me know if I am wrong.
I know the question may seem strange, but I wonder, thanks in advance :)
source
share