Since the online comment-strippers I found didn’t work for the most part, here’s a little working POC of that _should_ work on any valid JS input.

Paste the JS into the textarea and click the button – the textarea’s value will be updated with the stripped version of the script you pasted.