Is there a way to execute JavaScript on an already open browser tab remotely? For instance, if there is a tab open (of a webpage I do not manage) and I want to run a script within that specific tab by somehow sending the script from the command line.
The goal is to create the script in any IDE and then execute it in the context of an existing webpage.
Ideally, each execution would be isolated so that multiple evaluations of const someVar = 1
would not interfere with each other (since a const
cannot be redefined).