Created
June 29, 2012 21:49
-
-
Save Heavyblade/3020870 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def self.user_agent(mybrowser) | |
| case mybrowser | |
| when /MSIE/ then "Internet Explorer" | |
| when /Firefox/ then "Mozilla Firefox" | |
| when /Opera/ then "Opera" | |
| when /Safari/ then "Safari" | |
| when /Chrome/ then "Google Chrome" | |
| when /Camino/ then "Camino" | |
| when /Dillo/ then "Dillo" | |
| when /Epiphany/ then "Epiphany" | |
| when /Firebird/ then "Mozilla Firebird" | |
| when /Thunderbird/ then "Mozilla Thunderbird" | |
| when /Galeon/ then "Mozilla Galeon" | |
| when /IBrowse/ then "IBrowse" | |
| when /iCab/ then "iCab" | |
| when /K-Meleon/ then "K-Meleon" | |
| when /Konqueror/ then "Konqueror" | |
| when /SeaMonkey/ then "SeaMonkey" | |
| when /Netscape/ then "Netscape" | |
| when /OmniWeb/ then "OmniWeb" | |
| else "Unknown" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment