最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

user agent - Detect Mountain Lion (OS X 10.8) in javascript? - Stack Overflow

programmeradmin1浏览0评论

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...

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...

Share Improve this question edited May 23, 2017 at 10:30 CommunityBot 11 silver badge asked Aug 6, 2012 at 10:37 Vito De TullioVito De Tullio 1,6934 gold badges35 silver badges60 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

Here is the Mountain Lion User Agent string for Safari:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25

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:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:12.0) Gecko/20100101 Firefox/12.0

You can see the OS portion is a little different, using 10.8 instead of 10_8.

发布评论

评论列表(0)

  1. 暂无评论