Javascript Obfuscator converts the JavaScript source code into scrambled and completely unreadable form, preventing it from analysing and theft.
Javascript Obfuscator can
process javascript tags in html files and all .js files associated with html pages as well as separate .js files
remove comments and white spaces, reducing the file size and minimizing the loading time
pack the code as a long line
add finishing ";" when appropriate
create a list of function and variable names
generate new non-understandable names and rename functions and variables depending on user settings
work with command line
Compare how the same piece of code looks before: oldcr.rar
//detect which browser is used
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;
if (checkIt('konqueror'))
{
browser = "Konqueror";
OS = "Linux";
}
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
browser = "Netscape Navigator"
version = detect.charAt(8);
}
else browser = "An unknown browser";
//version of browser
if (!version) version = detect.charAt(place + thestring.length);
//client OS
if (!OS)
{
if (checkIt('linux')) OS = "Linux";
else if (checkIt('x11')) OS = "Unix";
else if (checkIt('mac')) OS = "Mac"
else if (checkIt('win')) OS = "Windows"
else OS = "an unknown operating system";
}
//check the string
function checkIt(string)
{
place = detect.indexOf(string) + 1;
thestring = string;
return place;
}