A bash script to get JavaScript code input in a GUI prompt and then display the console output. It's built to use with a global keyboard shortcut for a fast JS eval.
chmod +x js-dialog.sh
./js-dialog.sh
- Type your code and press
Ctrl
+Enter
to run. - Press
Enter
orCtrl
+Enter
to close the output window.