Http://www.javascript-source.com/
Before Obfuscation
Copy Save
// 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 ( 'Compuble' ) {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 ;}
After obfuscation:CopySave
VaR E = navigator. useragent. tolowercase (); VaR F, B, c, total, D; If (( 'Konqueror' ) {B = "Konqueror" ; F = "Linux" ;}; Else If (( 'Opera' ) B = "Opera" ; Else If (( 'Msie' ) B = "Internet Explorer" ; Else If (! A ( 'Compuble' ) {B = "Netscape Navigator" ; C = E. charat (8 );}; Else B = "An unknown Browser" ; If (! C) C = E. charat (G + D. Length ); If (! F ){ If (( 'Linux' ) F = "Linux" ; Else If (( 'X11' ) F = "Unix" ; Else If (( 'Mac' ) F = "Mac" ;Else If (( 'Win' ) F = "Windows" ; Else F = "An unknown Operating System" ;}; Function A (string) {G = E. indexof (string) + 1; D = string; Return G ;};