I am wondering if it is possible to execute JavaScript in a browser window using the command prompt in Windows. Is it possible to start chrome and execute a JS file in that new browser window, all from the command prompt?
It's certainly possible to open a browser to a specific page from the command line... so you could put some JavaScript in an html page and launch a browser so it opens that page.
@jahroy I've been trying for over 30 minutes to achieve something like this as a .bat for an answer (anon func takes window.location.search and adds as <script>), but DOS just keeps tripping up over strings. Long story short; write a .html file to do it.
user.js)window.location.searchand adds as<script>), but DOS just keeps tripping up over strings. Long story short; write a.htmlfile to do it.