2012-04-04 23:07:17 +00:00
// Case matters, see lib/msf/core/constants.rb
// All of these should match up with constants in ::Msf::HttpClients
clients _opera = "Opera" ;
clients _ie = "MSIE" ;
clients _ff = "Firefox" ;
clients _chrome = "Chrome" ;
clients _safari = "Safari" ;
// All of these should match up with constants in ::Msf::OperatingSystems
oses _linux = "Linux" ;
oses _windows = "Microsoft Windows" ;
2012-04-09 20:08:35 +00:00
oses _mac _osx = "Mac OS X" ;
2012-04-04 23:07:17 +00:00
oses _freebsd = "FreeBSD" ;
oses _netbsd = "NetBSD" ;
oses _openbsd = "OpenBSD" ;
// All of these should match up with the ARCH_* constants
arch _armle = "armle" ;
arch _x86 = "x86" ;
arch _x86 _64 = "x86_64" ;
arch _ppc = "ppc" ;
2012-04-09 20:08:35 +00:00
window . os _detect = { } ;
2012-04-04 23:07:17 +00:00
/ * *
* This can reliably detect browser versions for IE and Firefox even in the
* presence of a spoofed User - Agent . OS detection is more fragile and
* requires truthful navigator . appVersion and navigator . userAgent strings in
* order to be accurate for more than just IE on Windows .
* * /
window . os _detect . getVersion = function ( ) {
//Default values:
var os _name ;
var os _flavor ;
var os _sp ;
var os _lang ;
var ua _name ;
var ua _version ;
var arch = "" ;
var useragent = navigator . userAgent ;
// Trust but verify...
var ua _is _lying = false ;
var version = "" ;
2012-05-15 20:55:12 +00:00
var unknown _fingerprint = null ;
2012-04-04 23:07:17 +00:00
//--
// Client
//--
if ( window . opera ) {
ua _name = clients _opera ;
if ( ! navigator . userAgent . match ( /Opera/ ) ) {
ua _is _lying = true ;
}
// This seems to be completely accurate, e.g. "9.21" is the return
// value of opera.version() when run on Opera 9.21
ua _version = opera . version ( ) ;
if ( ! os _name ) {
// The 'inconspicuous' argument is there to give us a real value on
// Opera 6 where, without it, the return value is supposedly
// 'Hm, were you only as smart as Bjorn Vermo...'
// though I have not verfied this claim.
switch ( opera . buildNumber ( 'inconspicuous' ) ) {
case "344" : // opera-9.0-20060616.1-static-qt.i386-en-344
2012-04-08 17:12:32 +00:00
case "1347" : // Opera 9.80 / Ubuntu 10.10 (Karmic Koala)
2012-04-04 23:07:17 +00:00
case "2091" : // opera-9.52-2091.gcc3-shared-qt3.i386.rpm
case "2444" : // opera-9.60.gcc4-shared-qt3.i386.rpm
2012-04-08 17:12:32 +00:00
case "2474" : // Opera 9.63 / Debian Testing (Lenny)
2012-04-07 00:09:19 +00:00
case "4102" : // Opera 10.00 / Ubuntu 8.04 LTS (Hardy Heron)
2012-04-04 23:07:17 +00:00
case "6386" : // 10.61
os _name = oses _linux ;
break ;
2012-04-07 00:41:14 +00:00
case "1074" : // Opera 11.50 / Windows XP
case "1100" : // Opera 11.52 / Windows XP
2012-04-07 00:09:19 +00:00
case "3445" : // 10.61
case "3516" : // Opera 10.63 / Windows XP
case "7730" : // Opera 8.54 / Windows XP
2012-04-04 23:07:17 +00:00
case "8502" : // "Opera 9 Eng Setup.exe"
case "8679" : // "Opera_9.10_Eng_Setup.exe"
case "8771" : // "Opera_9.20_Eng_Setup.exe"
case "8776" : // "Opera_9.21_Eng_Setup.exe"
case "8801" : // "Opera_9.22_Eng_Setup.exe"
case "10108" : // "Opera_952_10108_en.exe"
case "10467" : // "Opera_962_en_Setup.exe"
2012-04-07 00:09:19 +00:00
case "10476" : // Opera 9.63 / Windows XP
2012-05-15 22:29:17 +00:00
case "WMD-50433" : // Windows Mobile - "Mozilla/5.0 (Windows Mobile; U; en; rv:1.8.1) Gecko/20061208 Firefox/2.0.0 Opera 10.00"
2012-04-04 23:07:17 +00:00
os _name = oses _windows ;
break ;
2012-04-07 00:09:19 +00:00
case "2480" : // Opera 9.64 / FreeBSD 7.0
os _name = oses _freebsd ;
break ;
2012-04-04 23:07:17 +00:00
case "6386" : // 10.61
os _name = oses _mac _osx ;
break ;
2012-04-09 20:08:35 +00:00
case "1407" :
// In the case of mini versions, the UA is quite a bit
// harder to spoof, so it's correspondingly easier to
// trust. Unfortunately, despite being fairly truthful in
// what OS it's running on, Opera mini seems to lie like a
// rug in regards to the browser version.
//
// iPhone, iOS 5.0.1
// Opera/9.80 (iPhone; Opera Mini/7.1.32694/27.1407; U; en) Presto/2.8.119 Version/11.10.10
// Android 2.3.6, opera mini 7.1
// Opera/9.80 (Android; Opera Mini/7.29530/27.1407; U; en) Presto/2.8.119 Version/11.101.10
if ( navigator . userAgent . indexOf ( "Android" ) ) {
os _name = oses _linux ;
os _flavor = "Android" ;
} else if ( navigator . userAgent . indexOf ( "iPhone" ) ) {
os _name = oses _mac _osx ;
os _flavor = "iPhone" ;
}
break ;
2012-04-07 00:09:19 +00:00
// A few are ambiguous, record them here
case "1250" :
2012-04-08 17:12:32 +00:00
// Opera 9.80 / Windows XP
2012-04-07 00:09:19 +00:00
// Opera 11.61 / Windows XP
// Opera 11.61 / Debian 4.0 (Etch)
break ;
2012-05-15 20:55:12 +00:00
default :
unknown _fingerprint = opera . buildNumber ( 'inconspicuous' ) ;
break ;
2012-04-04 23:07:17 +00:00
}
}
2012-06-25 06:03:34 +00:00
} else if ( typeof window . onmousewheel != 'undefined' && ! ( typeof ScriptEngineMajorVersion == 'function' ) ) { // IE 10 now has onmousewheel
2012-04-04 23:07:17 +00:00
// Then this is webkit, could be Safari or Chrome.
// Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
// Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5
// Mozilla/5.0 (Linux; U; Android 2.2; en-au; GT-I9000 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
// Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8C148
// Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405
// Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
// Google Chrome has window.google (older versions), window.chromium (older versions), and window.window.chrome (3+)
if ( window . chromium || window . google || window . chrome ) {
ua _name = clients _chrome ;
search = "Chrome" ;
} else {
ua _name = clients _safari ;
search = "Version" ;
}
platform = navigator . platform . toLowerCase ( ) ;
// Just to be a pain, iPod and iPad both leave off "Safari" and
// "Version" in the UA, see example above. Grab the webkit version
// instead. =/
if ( platform . match ( /ipod/ ) ) {
os _name = oses _mac _osx ;
os _flavor = "iPod" ;
arch = arch _armle ;
search = "AppleWebKit" ;
} else if ( platform . match ( /ipad/ ) ) {
os _name = oses _mac _osx ;
os _flavor = "iPad" ;
arch = arch _armle ;
search = "AppleWebKit" ;
} else if ( platform . match ( /iphone/ ) ) {
os _name = oses _mac _osx ;
os _flavor = "iPhone" ;
arch = arch _armle ;
} else if ( platform . match ( /macintel/ ) ) {
os _name = oses _mac _osx ;
arch = arch _x86 ;
} else if ( platform . match ( /linux/ ) ) {
os _name = oses _linux ;
if ( platform . match ( /x86_64/ ) ) {
arch = arch _x86 _64 ;
} else if ( platform . match ( /arm/ ) ) {
// Android and maemo
arch = arch _armle ;
}
} else if ( platform . match ( /windows/ ) ) {
os _name = oses _windows ;
}
ua _version = this . searchVersion ( search , navigator . userAgent ) ;
if ( ! ua _version || 0 == ua _version . length ) {
ua _is _lying = true ;
}
} else if ( ! document . all && navigator . taintEnabled ) {
// Use taintEnabled to identify FF since other recent browsers
// implement window.getComputedStyle now. For some reason, checking for
// taintEnabled seems to cause IE 6 to stop parsing, so make sure this
// isn't IE first.
//
// Then this is a Gecko derivative, assume Firefox since that's the
// only one we have sploits for. We may need to revisit this in the
// future. This works for multi/browser/mozilla_compareto against
// Firefox and Mozilla, so it's probably good enough for now.
ua _name = clients _ff ;
2012-05-15 20:55:12 +00:00
// Thanks to developer.mozilla.org "Firefox for developers" series for most
// of these.
2013-07-18 21:35:57 +00:00
// Release changelogs: http://www.mozilla.org/en-US/firefox/releases/
if ( 'HTMLTimeElement' in window ) {
ua _version = '22.0'
} else if ( 'createElement' in document &&
document . createElement ( 'main' ) &&
document . createElement ( 'main' ) . constructor === window [ 'HTMLElement' ] ) {
ua _version = '21.0'
} else if ( 'imul' in Math ) {
ua _version = '20.0'
} else if ( 'HTMLCanvasElement' in window &&
'toBlob' in HTMLCanvasElement . prototype ) {
ua _version = '19.0'
} else if ( 'devicePixelRatio' in window ) {
ua _version = '18.0'
} else if ( 'HTMLIFrameElement' in window &&
'sandbox' in HTMLIFrameElement . prototype ) {
ua _version = '17.0'
} else if ( 'CSS2Properties' in window &&
'animation' in CSS2Properties . prototype ) {
ua _version = '16.0'
} else if ( 'HTMLSourceElement' in window &&
'media' in HTMLSourceElement . prototype ) {
ua _version = '15.0'
} else if ( 'mozRequestPointerLock' in document . body ) {
ua _version = '14.0'
} else if ( 'Map' in window ) {
ua _version = "13.0"
} else if ( 'mozConnection' in navigator ) {
2012-05-15 20:55:12 +00:00
ua _version = "12.0" ;
} else if ( 'mozVibrate' in navigator ) {
ua _version = "11.0" ;
} else if ( 'mozCancelFullScreen' in document ) {
ua _version = "9.0" ;
} else if ( 'insertAdjacentHTML' in document . body ) {
ua _version = "8.0" ;
} else if ( 'ondeviceorientation' in window && ! ( 'createEntityReference' in document ) ) {
ua _version = "7.0" ;
2012-05-15 22:42:53 +00:00
} else if ( 'MozBlobBuilder' in window ) {
2012-05-15 20:55:12 +00:00
ua _version = "6.0" ;
} else if ( 'isGenerator' in Function ) {
ua _version = "5.0" ;
} else if ( 'isArray' in Array ) {
ua _version = "4.0" ;
} else if ( document . readyState ) {
2012-04-04 23:07:17 +00:00
ua _version = "3.6" ;
} else if ( String . trimRight ) {
ua _version = "3.5" ;
} else if ( document . getElementsByClassName ) {
ua _version = "3" ;
} else if ( window . Iterator ) {
ua _version = "2" ;
} else if ( Array . every ) {
ua _version = "1.5" ;
} else {
ua _version = "1" ;
}
if ( navigator . oscpu != navigator . platform ) {
ua _is _lying = true ;
}
// oscpu is unaffected by changes in the useragent and has values like:
// "Linux i686"
// "Windows NT 6.0"
// haven't tested on 64-bit Windows
version = navigator . oscpu ;
if ( version . match ( /i.86/ ) ) {
arch = arch _x86 ;
}
if ( version . match ( /x86_64/ ) ) {
arch = arch _x86 _64 ;
}
if ( version . match ( /Windows/ ) ) {
os _name = oses _windows ;
switch ( version ) {
case "Windows NT 5.0" : os _flavor = "2000" ; break ;
case "Windows NT 5.1" : os _flavor = "XP" ; break ;
case "Windows NT 5.2" : os _flavor = "2003" ; break ;
case "Windows NT 6.0" : os _flavor = "Vista" ; break ;
case "Windows NT 6.1" : os _flavor = "7" ; break ;
2012-06-25 05:36:04 +00:00
case "Windows NT 6.2" : os _flavor = "8" ; break ;
2012-04-04 23:07:17 +00:00
}
}
if ( version . match ( /Linux/ ) ) {
os _name = oses _linux ;
}
// end navigator.oscpu checks
// buildID is unaffected by changes in the useragent and typically has
// the compile date which in some cases can be used to map to specific
// Version & O/S (including Distro and even Arch). Depending upon the
// buildID, sometime navigator.productSub will be needed.
//
// This technique, and the laboriously compiled associated table,
// submitted by Mark Fioravanti.
var buildid = navigator . buildID ;
switch ( buildid ) {
case "2008041514" : ua _version = "3.0.0.b5" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2008041515" : ua _version = "3.0.0.b5" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "2008052312" : ua _version = "3.0.0" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2008052906" : ua _version = "3.0.0" ; os _name = oses _windows ; break ;
case "2008052909" : ua _version = "3.0.0.rc1" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2008052912" : ua _version = "3.0.0" ; os _name = oses _linux ; break ;
case "2008060309" : ua _version = "3.0.0" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "2008070205" : ua _version = "2.0.0.16" ; os _name = oses _windows ; break ;
case "2008070206" : ua _version = "3.0.1" ; os _name = oses _linux ; break ;
case "2008070208" : ua _version = "3.0.1" ; os _name = oses _windows ; break ;
case "2008071222" : ua _version = "3.0.1" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2008072820" :
switch ( navigator . productSub ) {
case "2008072820" : ua _version = "3.0.1" ; os _name = oses _linux ; break ;
case "2008092313" : ua _version = "3.0.2" ; os _name = oses _linux ; break ;
} break ;
case "2008082909" : ua _version = "2.0.0.17" ; os _name = oses _windows ; break ;
case "2008091618" : ua _version = "3.0.2" ; os _name = oses _linux ; break ;
case "2008091620" : ua _version = "3.0.2" ; os _name = oses _windows ; break ;
case "2008092313" : ua _version = "3.0.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2008092416" : ua _version = "3.0.3" ; os _name = oses _linux ; break ;
case "2008092417" : ua _version = "3.0.3" ; os _name = oses _windows ; break ;
case "2008092510" : ua _version = "3.0.4" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2008101315" :
switch ( navigator . productSub ) {
case "2008101315" : ua _version = "3.0.3" ; os _name = oses _linux ; break ;
case "2008111318" : ua _version = "3.0.4" ; os _name = oses _linux ; arch = arch _x86 ; break ;
} break ;
case "2008102918" : ua _version = "2.0.0.18" ; os _name = oses _windows ; break ;
case "2008102920" : ua _version = "3.0.4" ; break ;
2012-04-08 17:12:32 +00:00
case "2008112309" : ua _version = "3.0.4" ; os _name = oses _linux ; os _flavor = "Debian" ; break ; // browsershots: Iceweasel 3.0.4 / Debian Testing (Lenny)
2012-04-04 23:07:17 +00:00
case "2008111317" : ua _version = "3.0.5" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2008111318" : ua _version = "3.0.5" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "2008120119" : ua _version = "2.0.0.19" ; os _name = oses _windows ; break ;
case "2008120121" : ua _version = "3.0.5" ; os _name = oses _linux ; break ;
case "2008120122" : ua _version = "3.0.5" ; os _name = oses _windows ; break ;
2012-04-08 17:12:32 +00:00
case "2008121623" : ua _version = "2.0.0.19" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ; // browsershots: Firefox 2.0.0.19 / Ubuntu 8.04 LTS (Hardy Heron)
2012-04-04 23:07:17 +00:00
case "2008121709" : ua _version = "2.0.0.20" ; os _name = oses _windows ; break ;
case "2009011912" : ua _version = "3.0.6" ; os _name = oses _linux ; break ;
case "2009011913" : ua _version = "3.0.6" ; os _name = oses _windows ; break ;
case "2009012615" : ua _version = "3.0.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2009012616" : ua _version = "3.0.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2009021906" : ua _version = "3.0.7" ; os _name = oses _linux ; break ;
case "2009021910" : ua _version = "3.0.7" ; os _name = oses _windows ; break ;
case "2009030422" : ua _version = "3.0.8" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2009032608" : ua _version = "3.0.8" ; os _name = oses _linux ; break ;
case "2009032609" : ua _version = "3.0.8" ; os _name = oses _windows ; break ;
case "2009032711" : ua _version = "3.0.9" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2009033100" :
switch ( navigator . productSub ) {
case "2009033100" : ua _version = "3.0.8" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "2009042113" : ua _version = "3.0.9" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
} break ;
case "2009040820" : ua _version = "3.0.9" ; os _name = oses _linux ; break ;
case "2009040821" : ua _version = "3.0.9" ; os _name = oses _windows ; break ;
case "2009042113" : ua _version = "3.0.10" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2009042114" : ua _version = "3.0.10" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "2009042315" : ua _version = "3.0.10" ; os _name = oses _linux ; break ;
case "2009042316" : ua _version = "3.0.10" ; os _name = oses _windows ; break ;
case "20090427153806" : ua _version = "3.5.0.b4" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20090427153807" : ua _version = "3.5.0.b4" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "2009060214" : ua _version = "3.0.11" ; os _name = oses _linux ; break ;
case "2009060215" : ua _version = "3.0.11" ; os _name = oses _windows ; break ;
case "2009060308" :
switch ( navigator . productSub ) {
case "2009060308" : ua _version = "3.0.11" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2009070811" : ua _version = "3.0.12" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
} break ;
case "2009060309" :
switch ( navigator . productSub ) {
case "2009060309" : ua _version = "3.0.11" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "2009070811" : ua _version = "3.0.12" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
} break ;
case "2009060310" : ua _version = "3.0.11" ; os _name = oses _linux ; os _flavor = "BackTrack" ; break ;
case "2009062005" : ua _version = "3.0.11" ; os _name = oses _linux ; os _flavor = "PCLunixOS" ; break ;
case "20090624012136" : ua _version = "3.5.0" ; os _name = oses _mac _osx ; break ;
case "20090624012820" : ua _version = "3.5.0" ; os _name = oses _linux ; break ;
case "20090701234143" : ua _version = "3.5.0" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20090702060527" : ua _version = "3.5.0" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 _64 ; break ;
case "2009070610" : ua _version = "3.0.12" ; os _name = oses _linux ; break ;
case "2009070611" : ua _version = "3.0.12" ; os _name = oses _windows ; break ;
case "2009070811" : ua _version = "3.0.13" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "20090715083437" : ua _version = "3.5.1" ; os _name = oses _mac _osx ; break ;
case "20090715083816" : ua _version = "3.5.1" ; os _name = oses _linux ; break ;
case "20090715094852" : ua _version = "3.5.1" ; os _name = oses _windows ; break ;
case "2009072202" : ua _version = "3.0.12" ; os _name = oses _linux ; os _flavor = "Oracle" ; break ;
case "2009072711" : ua _version = "3.0.12" ; os _name = oses _linux ; os _flavor = "CentOS" ; break ;
case "20090729211433" : ua _version = "3.5.2" ; os _name = oses _mac _osx ; break ;
case "20090729211829" : ua _version = "3.5.2" ; os _name = oses _linux ; break ;
case "20090729225027" : ua _version = "3.5.2" ; os _name = oses _windows ; break ;
case "2009073021" : ua _version = "3.0.13" ; os _name = oses _linux ; break ;
case "2009073022" : ua _version = "3.0.13" ; os _name = oses _windows ; break ;
case "20090824085414" : ua _version = "3.5.3" ; os _name = oses _mac _osx ; break ;
case "20090824085743" : ua _version = "3.5.3" ; os _name = oses _linux ; break ;
case "20090824101458" : ua _version = "3.5.3" ; os _name = oses _windows ; break ;
case "2009082707" : ua _version = "3.0.14" ; break ;
case "2009090216" : ua _version = "3.0.14" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20090914014745" : ua _version = "3.5.3" ; os _name = oses _linux ; os _flavor = "Mandriva" ; arch = arch _x86 ; break ;
case "20090915065903" : ua _version = "3.5.3" ; os _name = oses _linux ; os _flavor = "Sabayon" ; arch = arch _x86 _64 ; break ;
case "20090915070141" : ua _version = "3.5.3" ; os _name = oses _linux ; os _flavor = "Sabayon" ; arch = arch _x86 ; break ;
case "20091007090112" : ua _version = "3.5.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ; // Could also be Mint x86
case "20091007095328" : ua _version = "3.5.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ; // Could also be Mint x86-64
case "2009101600" :
switch ( navigator . productSub ) {
case "2009101600" : ua _version = "3.0.15" ; break ; // Can be either Mac or Linux
case "20091016" : ua _version = "3.5.4" ; os _name = oses _linux ; os _flavor = "SUSE" ; arch = arch _x86 ; break ;
} break ;
case "2009101601" : ua _version = "3.0.15" ; os _name = oses _windows ; break ;
case "20091016081620" : ua _version = "3.5.4" ; os _name = oses _mac _osx ; break ;
case "20091016081727" : ua _version = "3.5.4" ; os _name = oses _linux ; break ;
case "20091016092926" : ua _version = "3.5.4" ; os _name = oses _windows ; break ;
case "20091020122601" : ua _version = "3.5.4" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ; // Could also be Mint x86-64
case "2009102814" :
switch ( navigator . productSub ) {
case "2009121601" : ua _version = "3.0.16" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "2009121602" : ua _version = "3.0.16" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "2010010604" : ua _version = "3.0.17" ; os _name = oses _linux ; os _flavor = "Mint" ; break ;
case "2010021501" : ua _version = "3.0.17;xul1.9.0.18" ; os _name = oses _linux ; os _flavor = "Mint" ; arch = arch _x86 ; break ;
case "2010021502" : ua _version = "3.0.17;xul1.9.0.18" ; os _name = oses _linux ; os _flavor = "Mint" ; arch = arch _x86 _64 ; break ;
} break ;
case "2009102815" :
switch ( navigator . productSub ) {
case "2009102815" : ua _version = "3.0.15" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2009121601" : ua _version = "3.0.16" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
} break ;
case "20091029152254" : ua _version = "3.6.0.b1" ; os _name = oses _linux ; break ;
case "20091029171059" : ua _version = "3.6.0.b1" ; os _name = oses _windows ; break ;
case "20091102134505" : ua _version = "3.5.5" ; os _name = oses _mac _osx ; break ;
case "20091102141836" : ua _version = "3.5.5" ; os _name = oses _linux ; break ;
case "20091102152451" : ua _version = "3.5.5" ; os _name = oses _windows ; break ;
case "2009110421" : ua _version = "3.0.15" ; os _name = oses _freebsd ; arch = arch _x86 ; break ;
case "20091106091959" : ua _version = "3.5.5" ; os _name = oses _linux ; os _flavor = "Mandriva" ; arch = arch _x86 ; break ;
case "20091106140514" : ua _version = "3.5.5" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20091106145609" : ua _version = "3.5.5" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 _64 ; break ;
case "20091108163911" : ua _version = "3.6.0.b2" ; os _name = oses _linux ; break ;
case "20091108181924" : ua _version = "3.6.0.b2" ; os _name = oses _windows ; break ;
case "20091109125225" :
switch ( navigator . productSub ) {
case "20091109" : ua _version = "3.5.5" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20091215" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
} break ;
case "20091109134913" : ua _version = "3.5.5" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20091115172547" : ua _version = "3.6.0.b3" ; os _name = oses _linux ; break ;
case "20091115182845" : ua _version = "3.6.0.b3" ; os _name = oses _windows ; break ;
case "20091124201530" : ua _version = "3.6.0.b4" ; os _name = oses _mac _osx ; break ;
case "20091124201751" : ua _version = "3.6.0.b4" ; os _name = oses _linux ; break ;
case "20091124213835" : ua _version = "3.6.0.b4" ; os _name = oses _windows ; break ;
case "2009120100" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "SUSE" ; break ;
case "20091201203240" : ua _version = "3.5.6" ; os _name = oses _mac _osx ; break ;
case "20091201204959" : ua _version = "3.5.6" ; os _name = oses _linux ; break ;
case "20091201220228" : ua _version = "3.5.6" ; os _name = oses _windows ; break ;
case "2009120206" : ua _version = "3.0.16" ; break ; // Can be either Mac or Linux
case "2009120208" : ua _version = "3.0.16" ; os _name = oses _windows ; break ;
case "20091204132459" : ua _version = "3.6.0.b5" ; os _name = oses _linux ; break ;
case "20091204132509" : ua _version = "3.6.0.b5" ; os _name = oses _mac _osx ; break ;
case "20091204143806" : ua _version = "3.6.0.b5" ; os _name = oses _windows ; break ;
case "20091215230859" : ua _version = "3.5.7" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20091215230946" : ua _version = "3.5.7" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20091215231400" : ua _version = "3.5.7" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ; // Could also be Mint x86
case "20091215231754" :
switch ( navigator . productSub ) {
case "20091215" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100106" : ua _version = "3.5.7" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ; // Could also be Mint x86-64
} break ;
case "2009121601" :
switch ( navigator . productSub ) {
case "2009121601" : ua _version = "3.0.16" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "2010010604" : ua _version = "3.0.17" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ; // Could also be Mint x86-64
} break ;
case "2009121602" : ua _version = "3.0.17" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "20091216104148" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "Mandriva" ; break ;
case "20091216132458" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20091216132537" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20091216142458" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20091216142519" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "2009121708" : ua _version = "3.0.16" ; os _name = oses _linux ; os _flavor = "CentOS" ; arch = arch _x86 ; break ;
case "20091221151141" : ua _version = "3.5.7" ; os _name = oses _mac _osx ; break ;
case "20091221152502" : ua _version = "3.5.7" ; os _name = oses _linux ; break ;
2012-04-08 17:12:32 +00:00
case "2009122115" : ua _version = "3.0.17" ; break ; // Can be either Mac or Linux
2012-04-04 23:07:17 +00:00
case "20091221164558" : ua _version = "3.5.7" ; os _name = oses _windows ; break ;
2012-04-08 17:12:32 +00:00
case "2009122116" : ua _version = "3.0.17" ; os _name = oses _windows ; break ;
2012-04-04 23:07:17 +00:00
case "2009122200" : ua _version = "3.5.7" ; os _name = oses _linux ; os _flavor = "SUSE" ; break ;
case "20091223231431" : ua _version = "3.5.6" ; os _name = oses _linux ; os _flavor = "PCLunixOS" ; arch = arch _x86 ; break ;
case "20100105194006" : ua _version = "3.6.0.rc1" ; os _name = oses _mac _osx ; break ;
case "20100105194116" : ua _version = "3.6.0.rc1" ; os _name = oses _linux ; break ;
case "20100105212446" : ua _version = "3.6.0.rc1" ; os _name = oses _windows ; break ;
case "2010010604" : ua _version = "3.0.18" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
case "20100106054534" : ua _version = "3.5.8" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ; // Could also be Mint x86
case "20100106054634" : ua _version = "3.5.8" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ; // Could also be Mint x86-64
2012-04-08 17:12:32 +00:00
case "2010010605" : ua _version = "3.0.18" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
2012-04-04 23:07:17 +00:00
case "20100106211825" : ua _version = "3.5.7" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20100106212742" : ua _version = "3.5.7" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 _64 ; break ;
case "20100106215614" : ua _version = "3.5.7" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20100110112429" : ua _version = "3.5.7" ; os _name = oses _linux ; os _flavor = "Mandriva" ; break ;
case "20100115132715" : ua _version = "3.6.0" ; os _name = oses _mac _osx ; break ;
case "20100115133306" : ua _version = "3.6.0" ; os _name = oses _linux ; break ;
case "20100115144158" : ua _version = "3.6.0" ; os _name = oses _windows ; break ;
case "20100125074043" : ua _version = "3.6.0" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ; // Could also be Mint x86
case "20100125074127" : ua _version = "3.6.0" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ; // Could also be Mint x86-64
case "20100125204847" : ua _version = "3.6.0" ; os _name = oses _linux ; os _flavor = "Sabayon" ; arch = arch _x86 ; break ; // Could also be Mint x86
case "20100125204903" : ua _version = "3.6.0" ; os _name = oses _linux ; os _flavor = "Sabayon" ; arch = arch _x86 _64 ; break ; // Could also be Mint x86-64
case "20100202152834" : ua _version = "3.5.8" ; os _name = oses _mac _osx ; break ;
case "20100202153512" : ua _version = "3.5.8" ; os _name = oses _linux ; break ;
case "20100202165920" : ua _version = "3.5.8" ; os _name = oses _windows ; break ;
case "2010020219" : ua _version = "3.0.18" ; os _name = oses _mac _osx ; break ;
case "2010020220" : ua _version = "3.0.18" ; os _name = oses _windows ; break ;
case "2010020400" : ua _version = "3.5.8" ; os _name = oses _linux ; os _flavor = "SUSE" ; break ;
case "20100212131909" : ua _version = "3.6.0.2" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100212132013" : ua _version = "3.6.0.2" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100216105329" : ua _version = "3.5.8" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20100216105348" : ua _version = "3.5.8" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20100216105410" : ua _version = "3.5.8" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20100216110009" : ua _version = "3.5.8" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "2010021718" : ua _version = "3.0.18" ; os _name = oses _linux ; os _flavor = "CentOS" ; arch = arch _x86 ; break ;
case "20100218022359" : ua _version = "3.6.0.4" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100218022705" : ua _version = "3.6.0.4" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100218112915" : ua _version = "3.5.8" ; os _name = oses _linux ; os _flavor = "Mandriva" ; arch = arch _x86 ; break ;
case "20100222120605" : ua _version = "3.6.0.5" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100222120717" : ua _version = "3.6.0.5" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100301015346" : ua _version = "3.6.0" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20100305054927" : ua _version = "3.6.0" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 _64 ; break ;
case "20100307204001" : ua _version = "3.6.0" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20100308142847" : ua _version = "3.6.0.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100308151019" : ua _version = "3.6.0.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "2010031218" : ua _version = "3.0.19" ; break ; // Mac OS X or Linux
case "2010031422" : ua _version = "3.0.19" ; os _name = oses _windows ; break ;
case "20100315075757" : ua _version = "3.5.9" ; os _name = oses _linux ; break ;
case "20100315080228" : ua _version = "3.5.9" ; os _name = oses _mac _osx ; break ;
case "20100315083431" : ua _version = "3.5.9" ; os _name = oses _windows ; break ;
case "20100316055951" : ua _version = "3.6.2" ; os _name = oses _mac _osx ; break ;
case "20100316060223" : ua _version = "3.6.2" ; os _name = oses _linux ; break ;
case "20100316074819" : ua _version = "3.6.2" ; os _name = oses _windows ; break ;
case "2010031700" : ua _version = "3.5.9" ; os _name = oses _linux ; os _flavor = "SUSE" ; break ;
case "20100323102218" : ua _version = "3.6.2" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20100323102339" : ua _version = "3.6.2" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20100323194640" : ua _version = "3.6.2" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 _64 ; break ;
case "20100324182054" : ua _version = "3.6.2" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20100330071911" : ua _version = "3.5.9" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20100330072017" : ua _version = "3.5.9" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20100330072020" : ua _version = "3.5.9" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20100330072034" : ua _version = "3.5.9" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20100401064631" : ua _version = "3.6.3" ; os _name = oses _mac _osx ; break ;
case "20100401074458" : ua _version = "3.6.3" ; os _name = oses _linux ; break ;
case "20100401080539" : ua _version = "3.6.3" ; os _name = oses _windows ; break ;
case "20100401144201" : ua _version = "3.6.2" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2010040116" : ua _version = "3.0.19" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2010040118" : ua _version = "3.0.19" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "2010040119" : ua _version = "3.0.19" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100401213457" : ua _version = "3.5.9" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
2012-04-08 17:12:32 +00:00
case "2010040121" : ua _version = "3.0.19" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
2012-04-04 23:07:17 +00:00
case "2010040123" : ua _version = "3.0.19" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "2010040200" : ua _version = "3.0.19" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100402010516" : ua _version = "3.5.9" ; os _name = oses _linux ; os _flavor = "Mint" ; arch = arch _x86 _64 ; break ;
case "20100402041908" : ua _version = "3.6.2" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100403042003" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20100403082016" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20100404024515" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100404024646" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100404104043" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "PClinuxOS" ; arch = arch _x86 _64 ; break ;
case "20100409151117" : ua _version = "3.6.3.2" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100409170726" : ua _version = "3.6.3.2" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100412125148" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "Mandriva" ; arch = arch _x86 ; break ;
case "20100413152922" : ua _version = "3.6.4.b1" ; os _name = oses _mac _osx ; break ;
case "20100413154310" : ua _version = "3.6.4.b1" ; os _name = oses _linux ; break ;
case "20100413172113" : ua _version = "3.6.4.b1" ; os _name = oses _windows ; break ;
case "20100415062243" : ua _version = "3.6.3.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100415103754" : ua _version = "3.6.3.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100416101101" : ua _version = "3.6.3.2" ; os _name = oses _linux ; os _flavor = "Mandriva" ; arch = arch _x86 ; break ;
case "2010041700" : ua _version = "3.6.4.1" ; os _name = oses _linux ; os _flavor = "SUSE" ; break ;
case "20100419015333" : ua _version = "3.6.3" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 _64 ; break ;
case "20100423043606" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "Sabayon" ; arch = arch _x86 _64 ; break ;
case "20100423140709" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100423141150" : ua _version = "3.6.3" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100423142835" : ua _version = "3.6.3" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20100502202326" : ua _version = "3.6.4.b2" ; os _name = oses _linux ; break ;
case "20100502202401" : ua _version = "3.6.4.b2" ; os _name = oses _mac _osx ; break ;
case "20100502221517" : ua _version = "3.6.4.b2" ; os _name = oses _windows ; break ;
case "20100503113315" : ua _version = "3.6.4.b3" ; os _name = oses _mac _osx ; break ;
case "20100503113541" : ua _version = "3.6.4.b3" ; os _name = oses _linux ; break ;
case "20100503122926" : ua _version = "3.6.4.b3" ; os _name = oses _windows ; break ;
case "20100504085637" : ua _version = "3.5.10" ; os _name = oses _linux ; break ;
case "20100504085753" : ua _version = "3.5.10" ; os _name = oses _mac _osx ; break ;
case "20100504093643" : ua _version = "3.5.10" ; os _name = oses _windows ; break ;
case "2010050600" : ua _version = "3.5.10" ; os _name = oses _linux ; os _flavor = "SUSE" ; break ;
case "2010051300" : ua _version = "3.6.4.1" ; os _name = oses _linux ; os _flavor = "SUSE" ; break ;
case "20100513134853" : ua _version = "3.6.4.b4" ; os _name = oses _mac _osx ; break ;
case "20100513140540" : ua _version = "3.6.4.b4" ; os _name = oses _linux ; break ;
case "20100513144105" : ua _version = "3.6.4.b4" ; os _name = oses _windows ; break ;
case "20100513190740" : ua _version = "3.6.3" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 _64 ; break ;
case "20100523180910" : ua _version = "3.6.4.b5" ; os _name = oses _mac _osx ; break ;
case "20100523181754" : ua _version = "3.6.4.b5" ; os _name = oses _linux ; break ;
case "20100523185824" : ua _version = "3.6.4.b5" ; os _name = oses _windows ; break ;
case "20100527084110" : ua _version = "3.6.4.b6" ; os _name = oses _mac _osx ; break ;
case "20100527085242" : ua _version = "3.6.4.b6" ; os _name = oses _linux ; break ;
case "20100527093236" : ua _version = "3.6.4.b6" ; os _name = oses _windows ; break ;
case "2010061100" : ua _version = "3.6.4" ; os _name = oses _linux ; os _flavor = "SUSE" ; break ;
case "20100611134546" : ua _version = "3.6.4.b7" ; os _name = oses _mac _osx ; break ;
case "20100611135942" : ua _version = "3.6.4.b7" ; os _name = oses _linux ; break ;
case "20100611143157" : ua _version = "3.6.4.b7" ; os _name = oses _windows ; break ;
case "20100622203044" : ua _version = "3.6.4" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20100622203045" : ua _version = "3.6.4" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20100622204750" : ua _version = "3.5.10" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 _64 ; break ;
case "20100622204830" : ua _version = "3.5.10" ; os _name = oses _linux ; os _flavor = "Fedora" ; arch = arch _x86 ; break ;
case "20100622205038" : ua _version = "3.6.4" ; os _name = oses _linux ; os _flavor = "PClinuxOS" ; arch = arch _x86 _64 ; break ;
case "20100623081410" : ua _version = "3.6.4" ; os _name = oses _linux ; os _flavor = "CentOS" ; arch = arch _x86 _64 ; break ;
case "20100623081921" : ua _version = "3.6.4" ; os _name = oses _linux ; os _flavor = "CentOS" ; arch = arch _x86 ; break ;
case "20100623155731" : ua _version = "3.6.4.b7" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100623200132" : ua _version = "3.6.4.b7" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100625222733" : ua _version = "3.6.6" ; os _name = oses _linux ; break ;
case "20100625223402" : ua _version = "3.6.6" ; os _name = oses _mac _osx ; break ;
case "20100625231939" : ua _version = "3.6.6" ; os _name = oses _windows ; break ;
case "20100626104508" : ua _version = "3.6.4" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 ; break ;
case "20100627211341" : ua _version = "3.6.4" ; os _name = oses _freebsd ; os _flavor = "PC-BSD" ; arch = arch _x86 _64 ; break ;
case "20100628082832" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "PClinuxOS" ; arch = arch _x86 _64 ; break ;
case "20100628124739" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100628143222" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100628232431" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100629034705" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100629105354" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "Mandriva" ; arch = arch _x86 ; break ;
case "20100630130433" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100630131607" : ua _version = "4.0.0.b1" ; os _name = oses _mac _osx ; break ;
case "20100630132217" : ua _version = "4.0.0.b1" ; os _name = oses _linux ; break ;
case "20100630141702" : ua _version = "4.0.0.b1" ; os _name = oses _windows ; break ;
case "20100630174226" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "Sabayon" ; arch = arch _x86 _64 ; break ;
case "20100630180611" : ua _version = "3.6.6" ; os _name = oses _linux ; os _flavor = "Sabayon" ; arch = arch _x86 ; break ;
case "20100709115208" : ua _version = "3.6.7.b1" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 ; break ;
case "20100709183408" : ua _version = "3.6.7.b1" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20100716093011" : ua _version = "3.6.7.b2" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; arch = arch _x86 _64 ; break ;
case "20101203075014" : ua _version = "3.6.13" ; os _name = oses _windows ; break ;
case "20101206122825" : ua _version = "3.6.13" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
2012-04-08 17:12:32 +00:00
case "20110318052756" : ua _version = "4.0" ; os _name = oses _windows ; break ; // browsershots: Firefox 4.0 / Windows XP
case "20110420144310" : ua _version = "3.5.19" ; os _name = oses _linux ; os _flavor = "Debian" ; break ; // browsershots: Firefox 3.5.19 / Debian 4.0 (Etch)
case "20110615151330" : ua _version = "5.0" ; os _name = oses _windows ; break ; // browsershots: Firefox 5.0 / Windows XP
case "20110811165603" : ua _version = "6.0" ; os _name = oses _windows ; break ; // browsershots: Firefox 6.0 / Windows XP
case "20110830092941" : ua _version = "6.0.1" ; os _name = oses _linux ; os _flavor = "Debian" ; break ; // browsershots: Firefox 6.0.1 / Debian 4.0 (Etch)
case "20110922153450" : ua _version = "7.0" ; os _name = oses _windows ; break ; // browsershots: Firefox 7.0 / Windows XP
case "20110928134238" : ua _version = "7.0.1" ; os _name = oses _linux ; os _flavor = "Debian" ; break ; // browsershots: Firefox 7.0.1 / Debian 4.0 (Etch)
case "20111104165243" : ua _version = "8.0" ; os _name = oses _windows ; break ; // browsershots: Firefox 8.0 / Windows XP
case "20111115183813" : ua _version = "8.0" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ; // browsershots: Firefox 8.0 / Ubuntu 9.10 (Karmic Koala)
case "20111216140209" : ua _version = "9.0" ; os _name = oses _windows ; break ; // browsershots: Firefox 9.0 / Windows XP
case "20120129021758" : ua _version = "10.0" ; os _name = oses _windows ; break ; // browsershots: Firefox 10.0 / Windows 2000
case "20120201083324" : ua _version = "3.5.16" ; os _name = oses _linux ; os _flavor = "Debian" ; break ; // browsershots: Iceweasel 3.5.16 / Debian 4.0 (Etch)
case "20120216013254" : ua _version = "3.6.27" ; os _name = oses _linux ; os _flavor = "Debian" ; break ; // browsershots: Firefox 3.6.27 / Debian 4.0 (Etch)
case "20120216100510" : ua _version = "10.0.2" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ; // browsershots: Firefox 10.0.2 / Ubuntu 9.10 (Karmic Koala)
case "20120310010316" : ua _version = "11.0" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ; // browsershots: Firefox 11.0 / Ubuntu 9.10 (Karmic Koala)
case "20120310194926" : ua _version = "11.0" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
2012-04-09 20:08:35 +00:00
case "20120312181643" :
// It is disconcerting that a buildID is the same on Windows
// and Mac, need to examine more versions on Mac.
ua _version = "11.0" ;
if ( /Mac/ . test ( navigator . oscpu ) ) {
os _name = oses _mac _osx ;
} else {
os _name = oses _windows ; // browsershots: Firefox 11.0 / Windows XP
}
break ;
2012-04-08 17:12:32 +00:00
case "20120314195616" : ua _version = "12.0" ; os _name = oses _linux ; os _flavor = "Debian" ; break ; // browsershots: Firefox 12.0 / Debian 4.0 (Etch)
2012-05-15 19:09:13 +00:00
case "20120423142301" : ua _version = "12.0" ; os _name = oses _linux ; os _flavor = "Ubuntu" ; break ;
2012-05-15 20:55:12 +00:00
case "20120424151700" : ua _version = "12.0" ; os _name = oses _linux ; os _flavor = "Fedora" ; break ;
2012-04-04 23:07:17 +00:00
default :
version = this . searchVersion ( "Firefox" , navigator . userAgent ) ;
// Verify whether the ua string is lying by checking if it contains
// the major version we detected using known objects above. If it
// appears to be truthful, then use its more precise version number.
if ( version && version . split ( "." ) [ 0 ] == ua _version . split ( "." ) [ 0 ] ) {
// The version number will sometimes end with a space or end of
// line, so strip off anything after a space if one exists
if ( - 1 != version . indexOf ( " " ) ) {
version = version . substr ( 0 , version . indexOf ( " " ) ) ;
}
ua _version = version ;
} else {
ua _is _lying = true ;
}
break ;
}
//if (ua_is_lying) { alert("UA is lying"); }
//alert(ua_version + " vs " + navigator.userAgent);
// end navigator.buildID checks
} else if ( typeof ScriptEngineMajorVersion == "function" ) {
// Then this is IE and we can very reliably detect the OS.
// Need to add detection for IE on Mac. Low priority, since we
// don't have any sploits for it yet and it's a very low market
// share.
os _name = oses _windows ;
ua _name = clients _ie ;
version = ScriptEngineMajorVersion ( ) . toString ( ) ;
version += ScriptEngineMinorVersion ( ) . toString ( ) ;
version += ScriptEngineBuildVersion ( ) . toString ( ) ;
//document.write("ScriptEngine: "+version+"<br />");
switch ( version ) {
case "514615" :
// IE 5.00.2920.0000, 2000 Advanced Server SP0 English
ua _version = "5.0" ;
os _flavor = "2000" ;
os _sp = "SP0" ;
break ;
case "515907" :
os _flavor = "2000" ;
os _sp = "SP3" ; //or SP2: oCC.getComponentVersion('{22d6f312-b0f6-11d0-94ab-0080c74c7e95}', 'componentid') => 6,4,9,1109
break ;
case "518513" :
os _flavor = "2000" ;
os _sp = "SP4" ;
break ;
case "566626" :
// IE 6.0.2600.0000, XP SP0 English
// IE 6.0.2800.1106, XP SP1 English
ua _version = "6.0" ;
os _flavor = "XP" ;
os _sp = "SP0" ;
break ;
case "568515" :
// IE 6.0.3790.0, 2003 Standard SP0 English
ua _version = "6.0" ;
os _flavor = "2003" ;
os _sp = "SP0" ;
break ;
case "568820" :
// IE 6.0.2900.2180, xp sp2 english
os _flavor = "XP" ;
os _sp = "SP2" ;
break ;
case "568827" :
os _flavor = "2003" ;
os _sp = "SP1" ;
break ;
case "568831" : //XP SP2 -OR- 2K SP4
if ( os _flavor == "2000" ) {
os _sp = "SP4" ;
}
else {
os _flavor = "XP" ;
os _sp = "SP2" ;
}
break ;
case "568832" :
os _flavor = "2003" ;
os _sp = "SP2" ;
break ;
case "568837" :
// IE 6.0.2900.2180, XP Professional SP2 Korean
ua _version = "6.0" ;
os _flavor = "XP" ;
os _sp = "SP2" ;
break ;
case "5716599" :
// IE 6.0.2900.5512, XP Professional SP3 English
// IE 6.0.2900.5512, XP Professional SP3 Spanish
ua _version = "6.0" ;
os _flavor = "XP" ;
os _sp = "SP3" ;
break ;
case "575730" :
// IE 7.0.5730.13, Server 2003 Standard SP2 English
// IE 7.0.5730.13, Server 2003 Standard SP1 English
// IE 7.0.5730.13, XP Professional SP2 English
// Rely on the user agent matching above to determine the OS.
// This will incorrectly identify 2k3 SP1 as SP2
ua _version = "7.0" ;
os _sp = "SP2" ;
break ;
case "5718066" :
// IE 7.0.5730.13, XP Professional SP3 English
ua _version = "7.0" ;
os _flavor = "XP" ;
os _sp = "SP3" ;
break ;
2012-04-07 00:09:19 +00:00
case "5722589" :
2013-04-12 03:29:02 +00:00
// IE 7.0.5730.13, XP Professional SP3 English
2012-04-07 00:09:19 +00:00
ua _version = "7.0" ;
os _flavor = "XP" ;
2013-04-12 03:29:02 +00:00
os _sp = "SP3" ;
2012-04-07 00:09:19 +00:00
break ;
2012-04-04 23:07:17 +00:00
case "576000" :
// IE 7.0.6000.16386, Vista Ultimate SP0 English
ua _version = "7.0" ;
os _flavor = "Vista" ;
os _sp = "SP0" ;
break ;
case "580" :
// IE 8.0.7100.0, Windows 7 English
// IE 8.0.7100.0, Windows 7 64-bit English
case "5816385" :
// IE 8.0.7600.16385, Windows 7 English
case "5816475" :
case "5816762" :
// IE 8.0.7600.16385, Windows 7 English
ua _version = "8.0" ;
os _flavor = "7" ;
os _sp = "SP0" ;
break ;
2013-04-12 03:29:02 +00:00
case "5817514" :
// IE 8.0.7600.17514, Windows 7 SP1 English
ua _version = "8.0" ;
os _flavor = "7" ;
os _sp = "SP1" ;
break ;
case "5818702" :
// IE 8.0.6001.18702, XP Professional SP3 English
case "5822960" :
// IE 8.0.6001.18702, XP Professional SP3 Greek
ua _version = "8.0" ;
os _flavor = "XP" ;
os _sp = "SP3" ;
break ;
2012-04-04 23:07:17 +00:00
case "9016406" :
// IE 9.0.7930.16406, Windows 7 64-bit
ua _version = "9.0" ;
os _flavor = "7" ;
os _sp = "SP0" ;
break ;
case "9016441" :
// IE 9.0.8112.16421, Windows 7 32-bit English
ua _version = "9.0" ;
os _flavor = "7" ;
os _sp = "SP1" ;
break ;
2012-05-15 20:55:12 +00:00
case "9016443" :
// IE 9.0.8112.16421, Windows 7 Polish
// Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
ua _version = "9.0" ;
os _flavor = "7" ;
os _sp = "SP1" ;
break ;
2012-06-25 06:03:34 +00:00
case "9016446" :
// IE 9.0.8112.16421, Windows 7 English (Update Versions: 9.0.7 (KB2699988)
// Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MASA; InfoPath.3; MS-RTC LM 8; BRI/2)Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MASA; InfoPath.3; MS-RTC LM 8; BRI/2)
2013-04-12 03:29:02 +00:00
ua _version = "9.0" ;
2012-06-25 06:03:34 +00:00
os _flavor = "7" ;
2013-04-12 03:29:02 +00:00
os _sp = "SP1" ;
break ;
case "9016464" :
// browsershots.org, MSIE 7.0 / Windows 2008 R2
os _flavor = "2008R2" ;
2012-06-25 06:03:34 +00:00
ua _version = "9.0" ;
2013-04-12 03:29:02 +00:00
break ;
case "9016470" :
// IE 9.0.8112.16421 / Windows 7 SP1
ua _version = "9.0" ;
os _flavor = "7" ;
2012-06-25 06:03:34 +00:00
os _sp = "SP1" ;
break ;
2012-06-25 05:41:45 +00:00
case "1000" :
2012-06-25 05:36:04 +00:00
// IE 10.0.8400.0 (Pre-release + KB2702844), Windows 8 x86 English Pre-release
ua _version = "10.0" ;
os _flavor = "8" ;
os _sp = "SP0" ;
break ;
2012-05-15 20:55:12 +00:00
default :
unknown _fingerprint = version ;
break ;
2012-04-04 23:07:17 +00:00
}
if ( ! ua _version ) {
// The ScriptEngine functions failed us, try some object detection
if ( document . documentElement && ( typeof document . documentElement . style . maxHeight ) != "undefined" ) {
// IE8 detection straight from IEBlog. Thank you Microsoft.
try {
ua _version = "8.0" ;
document . documentElement . style . display = "table-cell" ;
} catch ( e ) {
// This executes in IE7,
// but not IE8, regardless of mode
ua _version = "7.0" ;
}
} else if ( document . compatMode ) {
ua _version = "6.0" ;
} else if ( window . createPopup ) {
ua _version = "5.5" ;
} else if ( window . attachEvent ) {
ua _version = "5.0" ;
} else {
ua _version = "4.0" ;
}
switch ( navigator . appMinorVersion ) {
case ";SP2;" :
ua _version += ";SP2" ;
break ;
}
}
}
if ( ! os _name && navigator . platform == "Win32" ) { os _name = oses _windows ; }
//--
// Flavor
//--
if ( ! ua _is _lying ) {
version = useragent . toLowerCase ( ) ;
} else if ( navigator . oscpu ) {
// Then this is Gecko and we can get at least os_name without the
// useragent
version = navigator . oscpu . toLowerCase ( ) ;
} else {
// All we have left is the useragent and we know it's lying, so don't bother
version = " " ;
}
if ( ! os _name || 0 == os _name . length ) {
if ( version . indexOf ( "windows" ) != - 1 ) { os _name = oses _windows ; }
else if ( version . indexOf ( "mac" ) != - 1 ) { os _name = oses _mac _osx ; }
else if ( version . indexOf ( "linux" ) != - 1 ) { os _name = oses _linux ; }
}
if ( os _name == oses _windows && ( ! os _flavor || 0 == os _flavor . length ) ) {
if ( version . indexOf ( "windows 95" ) != - 1 ) { os _flavor = "95" ; }
else if ( version . indexOf ( "windows nt 4" ) != - 1 ) { os _flavor = "NT" ; }
else if ( version . indexOf ( "win 9x 4.9" ) != - 1 ) { os _flavor = "ME" ; }
else if ( version . indexOf ( "windows 98" ) != - 1 ) { os _flavor = "98" ; }
else if ( version . indexOf ( "windows nt 5.0" ) != - 1 ) { os _flavor = "2000" ; }
else if ( version . indexOf ( "windows nt 5.1" ) != - 1 ) { os _flavor = "XP" ; }
else if ( version . indexOf ( "windows nt 5.2" ) != - 1 ) { os _flavor = "2003" ; }
else if ( version . indexOf ( "windows nt 6.0" ) != - 1 ) { os _flavor = "Vista" ; }
else if ( version . indexOf ( "windows nt 6.1" ) != - 1 ) { os _flavor = "7" ; }
2012-06-25 05:36:04 +00:00
else if ( version . indexOf ( "windows nt 6.2" ) != - 1 ) { os _flavor = "8" ; }
2012-04-04 23:07:17 +00:00
}
if ( os _name == oses _linux && ( ! os _flavor || 0 == os _flavor . length ) ) {
if ( version . indexOf ( "gentoo" ) != - 1 ) { os _flavor = "Gentoo" ; }
else if ( version . indexOf ( "ubuntu" ) != - 1 ) { os _flavor = "Ubuntu" ; }
else if ( version . indexOf ( "debian" ) != - 1 ) { os _flavor = "Debian" ; }
else if ( version . indexOf ( "rhel" ) != - 1 ) { os _flavor = "RHEL" ; }
else if ( version . indexOf ( "red hat" ) != - 1 ) { os _flavor = "RHEL" ; }
else if ( version . indexOf ( "centos" ) != - 1 ) { os _flavor = "CentOS" ; }
else if ( version . indexOf ( "fedora" ) != - 1 ) { os _flavor = "Fedora" ; }
else if ( version . indexOf ( "android" ) != - 1 ) { os _flavor = "Android" ; }
}
//--
// Language
//--
if ( navigator . systemLanguage ) {
// ie
os _lang = navigator . systemLanguage ;
} else if ( navigator . language ) {
// gecko derivatives, safari, opera
os _lang = navigator . language ;
} else {
// some other browser and we don't know how to get the language, so
// just guess english
os _lang = "en" ;
}
//--
// Architecture
//--
if ( typeof ( navigator . cpuClass ) != 'undefined' ) {
// Then this is IE or Opera9+ and we can grab the arch directly
switch ( navigator . cpuClass ) {
case "x86" :
arch = arch _x86 ;
break ;
case "x64" :
arch = arch _x86 _64 ;
break ;
}
}
if ( ! arch || 0 == arch . length ) {
// We don't have the handy-dandy navagator.cpuClass, so infer from
// platform
version = navigator . platform ;
//document.write(version + "\\n");
// IE 8 does a bit of wacky user-agent switching for "Compatibility View";
// 64-bit client on Windows 7, 64-bit:
// Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0)
// 32-bit client on Windows 7, 64-bit:
// Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0)
// 32-bit client on Vista, 32-bit, "Compatibility View":
// Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0)
//
// Report 32-bit client on 64-bit OS as being 32 because exploits will
// need to know the bittedness of the process, not the OS.
if ( ( "Win32" == version ) || ( version . match ( /i.86/ ) ) ) {
arch = arch _x86 ;
} else if ( - 1 != version . indexOf ( 'x64' ) || ( - 1 != version . indexOf ( 'x86_64' ) ) ) {
arch = arch _x86 _64 ;
} else if ( - 1 != version . indexOf ( 'PPC' ) ) {
arch = arch _ppc ;
}
}
2012-04-09 20:08:35 +00:00
this . ua _is _lying = ua _is _lying ;
this . os _name = os _name ;
this . os _flavor = os _flavor ;
this . os _sp = os _sp ;
this . os _lang = os _lang ;
this . arch = arch ;
this . ua _name = ua _name ;
this . ua _version = ua _version ;
this . ua _version = ua _version ;
2012-04-04 23:07:17 +00:00
return { os _name : os _name , os _flavor : os _flavor , os _sp : os _sp , os _lang : os _lang , arch : arch , ua _name : ua _name , ua _version : ua _version } ;
2012-04-09 20:08:35 +00:00
} ; // function getVersion
2012-04-04 23:07:17 +00:00
window . os _detect . searchVersion = function ( needle , haystack ) {
var index = haystack . indexOf ( needle ) ;
var found _version ;
if ( index == - 1 ) { return ; }
found _version = haystack . substring ( index + needle . length + 1 ) ;
if ( found _version . indexOf ( ' ' ) != - 1 ) {
// Strip off any junk at the end such as a CLR declaration
found _version = found _version . substring ( 0 , found _version . indexOf ( ' ' ) ) ;
}
return found _version ;
2012-04-09 20:08:35 +00:00
} ;
2012-04-04 23:07:17 +00:00
/ *
* Return - 1 if a < b , 0 if a == b , 1 if a > b
* /
2012-04-05 07:22:27 +00:00
window . ua _ver _cmp = function ( ver _a , ver _b ) {
2012-04-04 23:07:17 +00:00
// shortcut the easy case
if ( ver _a == ver _b ) {
return 0 ;
}
a = ver _a . split ( "." ) ;
b = ver _b . split ( "." ) ;
for ( var i = 0 ; i < Math . max ( a . length , b . length ) ; i ++ ) {
// 3.0 == 3
if ( ! b [ i ] ) { b [ i ] = "0" ; }
if ( ! a [ i ] ) { a [ i ] = "0" ; }
if ( a [ i ] == b [ i ] ) { continue ; }
a _int = parseInt ( a [ i ] ) ;
b _int = parseInt ( b [ i ] ) ;
a _rest = a [ i ] . substr ( a _int . toString ( ) . length ) ;
b _rest = b [ i ] . substr ( b _int . toString ( ) . length ) ;
if ( a _int < b _int ) {
return - 1 ;
} else if ( a _int > b _int ) {
return 1 ;
} else { // ==
// Then we need to deal with the stuff after the ints, e.g.:
// "b4pre"
if ( a _rest == "b" && b _rest . length == 0 ) {
return - 1 ;
}
if ( b _rest == "b" && a _rest . length == 0 ) {
return 1 ;
}
// Just give up and try a lexicographical comparison
if ( a _rest < b _rest ) {
return - 1 ;
} else if ( a _rest > b _rest ) {
return 1 ;
}
}
}
// If we get here, they must be equal
return 0 ;
2012-04-09 20:08:35 +00:00
} ;
2012-04-04 23:07:17 +00:00
2012-04-05 07:22:27 +00:00
window . ua _ver _lt = function ( a , b ) {
2012-04-04 23:07:17 +00:00
if ( - 1 == this . ua _ver _cmp ( a , b ) ) { return true ; }
return false ;
2012-04-09 20:08:35 +00:00
} ;
2012-04-05 07:22:27 +00:00
window . ua _ver _gt = function ( a , b ) {
2012-04-04 23:07:17 +00:00
if ( 1 == this . ua _ver _cmp ( a , b ) ) { return true ; }
return false ;
2012-04-09 20:08:35 +00:00
} ;
2012-04-05 07:22:27 +00:00
window . ua _ver _eq = function ( a , b ) {
2012-04-04 23:07:17 +00:00
if ( 0 == this . ua _ver _cmp ( a , b ) ) { return true ; }
return false ;
2012-04-09 20:08:35 +00:00
} ;