vendor: 889 bytes, lines 1-35
1// JavaScript Document 2var matched, browser; 3 4jQuery.uaMatch = function( ua ) { 5 ua = ua.toLowerCase(); 6 7 var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || 8 /(webkit)[ \/]([\w.]+)/.exec( ua ) || 9 /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || 10 /(msie) ([\w.]+)/.exec( ua ) || 11 ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || 12 []; 13 14 return { 15 browser: match[ 1 ] || "", 16 version: match[ 2 ] || "0" 17 }; 18}; 19 20matched = jQuery.uaMatch( navigator.userAgent ); 21browser = {}; 22 23if ( matched.browser ) { 24 browser[ matched.browser ] = true; 25 browser.version = matched.version; 26} 27 28// Chrome is Webkit, but Webkit is also Safari. 29if ( browser.chrome ) { 30 browser.webkit = true; 31} else if ( browser.webkit ) { 32 browser.safari = true; 33} 34 35jQuery.browser = browser;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.