The jQuery document tags $.browser
as deprecated. So what's the replacement for it?
Messaging apps are the new web browsers. Conversational apps are the new websites. Messaging apps are on track to rival web browsers, the main point of contact between brands and their customers.
Microsoft Edge. The new Microsoft Edge is built on the Chromium engine so it's as compatible as Chrome itself, but with that Microsoft spin.
Google Chrome, Microsoft Edge, and Opera. Mozilla Firefox. Internet Explorer.
DuckDuckGo. DuckDuckGo started its life as a search engine built to oppose Google's data collecting ways but has since branched out into browsers too.
Based on jQuery migration plugin , I found this.
jQuery.uaMatch = function( ua ) { ua = ua.toLowerCase(); var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || /(webkit)[ \/]([\w.]+)/.exec( ua ) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || /(msie) ([\w.]+)/.exec( ua ) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || []; return { browser: match[ 1 ] || "", version: match[ 2 ] || "0" }; }; if ( !jQuery.browser ) { var matched = jQuery.uaMatch( navigator.userAgent ), browser = {}; if ( matched.browser ) { browser[ matched.browser ] = true; browser.version = matched.version; } // Chrome is Webkit, but Webkit is also Safari. if ( browser.chrome ) { browser.webkit = true; } else if ( browser.webkit ) { browser.safari = true; } jQuery.browser = browser; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With