Instructions: The top textarea may have your clipboard contents in it already, or you can press Ctrl-V to paste something else or edit it manually. Select how you want it processed, hit the button, and press Ctrl-C to copy the results.
If you're removing spaces around individual characters, you'll want to test the result thoroughly in case the trimming has been overzealous. Also, if removing linebreaks entirely, you'll want to replace } with }; after function(){} blocks, otherwise you'll get errors. Anyway, this should save you a lot of repetitive work. Enjoy!