<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Browser Detection'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 13:43:41 GMT</pubDate>
<item>
<title>chrisaiv said on 4/7/11</title>
<link>http://snipplr.com/view/271/browser-detection/</link>
<description><![CDATA[ Here's what I use for browser sniffing. http://snipplr.com/view/9096/jquery-common-browser-sniffing/ ]]></description>
<pubDate>Thu, 07 Apr 2011 03:11:14 GMT</pubDate>
<guid>http://snipplr.com/view/271/browser-detection/</guid>
</item>
<item>
<title>eisabai said on 11/15/10</title>
<link>http://snipplr.com/view/271/browser-detection/</link>
<description><![CDATA[ If you are using jQuery, you can use jQuery.browser to get browser details. 

In this example (http://eisabainyo.net/weblog/2010/09/01/10-useful-jquery-snippets/), I checked if the browser is IE 6 and displayed appropriate message if it is. ]]></description>
<pubDate>Mon, 15 Nov 2010 12:21:27 GMT</pubDate>
<guid>http://snipplr.com/view/271/browser-detection/</guid>
</item>
<item>
<title>Meander365 said on 8/11/09</title>
<link>http://snipplr.com/view/271/browser-detection/</link>
<description><![CDATA[ If you want to target ie with different css then use conditional comments and css. There's no need for js.

http://snipplr.com/view/18180/targeting-ie-using-conditional-comments-and-just-one-stylesheet/ ]]></description>
<pubDate>Tue, 11 Aug 2009 13:44:25 GMT</pubDate>
<guid>http://snipplr.com/view/271/browser-detection/</guid>
</item>
<item>
<title>rtcrm said on 4/24/09</title>
<link>http://snipplr.com/view/271/browser-detection/</link>
<description><![CDATA[ function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&amp;&amp;/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3')?g+' ff3':is('gecko/')?g:/opera(\s|\/)(\d+)/.test(ua)?'opera opera'+RegExp.$2:is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);

With just one line and less than 1kb which empower browser selectors. It gives you the ability to write specific CSS and JS code for each operating system and each browser. ]]></description>
<pubDate>Fri, 24 Apr 2009 10:31:54 GMT</pubDate>
<guid>http://snipplr.com/view/271/browser-detection/</guid>
</item>
</channel>
</rss>