Is it possible to detect if the user opens the script file in the browser tab to view it or if the scripts load as <script>
tag or a different way of loading scripts like ES Module import?
I've had this idea to add syntax highlighting and generate HTML output for script files (using Service Worker) when the user opens the script in a new tab, but I'm not sure if this is possible.