like Detect Lion (OS X 10.7) in javascript? but I need to detect the last OS (Mountain Lion).
Can someone tell me the user agent of Safari / Firefox / chrome on this OS?
Unfortunately I don’t have a mac…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is the Mountain Lion User Agent string for Safari:
So the 10_8 part of the string is the relevant factor in determining Mountain Lion. Just don’t forget that as updates appear for Mountain Lion that will change to 10_8_1, etc.
EDIT:
The FireFox UA is:
You can see the OS portion is a little different, using 10.8 instead of 10_8.