ua-parser / uap-core

The regex file necessary to build language ports of Browserscope's user agent parser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[request] add simplified browser name

coolbombom opened this issue · comments

Thank you for a great tool.

I was wondering if it is possible to add browser to user_agent, i know that i can see the family, but i really want to be able to see family chrome mobile webview and chrome mobile as just chrome browser instead of handling each family type.

And i don't think doing a contains is well written code and therefore something i would like to stay away from.

example:

uas Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Mobile Safari/537.36 result in family = chrome mobile, version=87

uas Mozilla/5.0 (Linux; Android 13; SM-S918B Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/112.0.5615.101 Mobile Safari/537.36 result in family = chrome mobile webview, version=112

But both instances are chrome browser

use case:
In my case i'm trying to identify whether the browser meets bootstrap requirements. https://getbootstrap.com/docs/5.3/getting-started/browsers-devices/

kind regards
c_bb