User-Agent 👀 Client Hints

Brands

console.log(navigator.userAgentData.brands);
[…]

Mobile indicator

console.log(navigator.userAgentData.mobile);
[…]

Platform

console.log(navigator.userAgentData.platform);
[…]

Full User-Agent data

navigator.userAgentData
.getHighEntropyValues(['architecture', 'bitness', 'brands', 'mobile', 'model', 'platform', 'platformVersion', 'uaFullVersion', 'fullVersionList', 'wow64'])
.then(ua => { console.log(ua) });

  

[For comparison] User-Agent

console.log(navigator.userAgent);
[…]