Improve Windows detection & recognize Windows CE & RT as separate OS variants

This commit is contained in:
Faisal Salman
2025-06-21 13:31:52 +07:00
parent f9836f1981
commit a9378427ed
8 changed files with 365 additions and 57 deletions

View File

@@ -9,14 +9,32 @@
}
},
{
"desc" : "Windows Phone OS",
"desc" : "Windows Phone 6.5",
"ua" : "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; HTC_Touch2_T3333; Windows Phone 6.5)",
"expect" :
{
"name" : "Windows Phone",
"version" : "6.5"
}
},
{
"desc" : "Windows Phone 7.0",
"ua" : "Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; DELL; Venue Pro)",
"expect" :
{
"name" : "Windows Phone OS",
"name" : "Windows Phone",
"version" : "7.0"
}
},
{
"desc" : "Windows Phone 7.5",
"ua" : "Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; NOKIA; Lumia 800)",
"expect" :
{
"name" : "Windows Phone",
"version" : "7.5"
}
},
{
"desc" : "Windows Phone 8",
"ua" : "Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; HTC; Windows Phone 8X by HTC)",
@@ -25,5 +43,14 @@
"name" : "Windows Phone",
"version" : "8.0"
}
},
{
"desc" : "Windows Phone 8.1",
"ua" : "Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 635) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537",
"expect" :
{
"name" : "Windows Phone",
"version" : "8.1"
}
}
]