How would can I execute javascript in the currently loaded page via the repl?
# load https://example.com
repl> content.location.href = 'https://example.com'
# say that example.com exposes a global function called pageStatus(),
# how do I call that function and get the results back in the repl
repl> content.window.pageStatus()
// returns !!! TypeError: content.window.pageStatus is not a function
Loading the page in firefox and using the developer tools console I can execute any of the following correctly
How would can I execute javascript in the currently loaded page via the repl?
Loading the page in firefox and using the developer tools console I can execute any of the following correctly