This page has two purposes. First, you can use this page to minify your JavaScript by taking unnecessary empty space and comments out of it, making your javascript more compact and thereby increasing the speed at which your JavaScript loads. Second, you can use this page to obfuscate your JavaScript and protect it from thiefs.
Disclaimer: This algorithm has been thoroughly tested. However, if you do not know what you are doing, please, do not use this tool. We do not guarantee that your resulting script will function in any way. We do not store your script on our server. This means two things for you. First, this means your script remains secure. Second, this also means it is your responsibility to maintain the original copy of the script. Very little to no tech support will be given with this algorithm, because we operate under the assumption that you know what you are doing. If you do not know what you are doing, do not use this algorithm.
Here is an example of correct, semi-colon terminated JavaScript
Make sure that all statements, including function declarations, are correctly terminated with semi-colons.
// sample code var input, output; // notice the semi-colon at the END of function declarations onload = function() { input = document.getElementById("input"); output = document.getElementById("output"); clearAll(true); }; function packScript() { output.value = pack(input.value); }; function clearAll(focus) { output.value = input.value = ""; // the "if" statement is NOT terminated with a semi-colon if (focus) { input.focus(); } };