One way of running Javascript on a website is to use for instance Greasemonkey. By any chance, would it be possible to execute Javascript commands from Mathematica?
2 Answers
This is now possible in Mathematica 12.
For example , you can open a new tab in web browser using following code:
session = StartWebSession[]
WebExecute["OpenPage" -> "https://www.wolfram.com"]
WebExecute["JavascriptExecute" -> "window.open('https://www.wolframalpha.com', '_blank')"]
For additional information , visit : https://reference.wolfram.com/language/ref/WebExecute.html
It might be relevant, you can run both in the browser https://github.com/JerryI/wljs-interpreter
ExternalEvaluate
could be used together with NodeJS. $\endgroup$