GithubHelp home page GithubHelp logo

whichbrowser / parser-javascript Goto Github PK

View Code? Open in Web Editor NEW
90.0 4.0 16.0 2.32 MB

Browser sniffing gone too far — A useragent parser library for JavaScript

License: MIT License

JavaScript 100.00% Shell 0.01%
whichbrowser user-agent rendering-engine webview bot detection gaming ua parser parsing

parser-javascript's Introduction

This is an extremely complicated and almost completely useless browser sniffing library. Useless because you shouldn't use browser sniffing. So stop right now and go read something about feature detecting instead. I'm serious. Go away. You'll thank me later.

WhichBrowser/Parser-PHP

The PHP version of WhichBrowser for use on a server. Fully compatible with PHP 7.0 or higher, including PHP 8.

Build Coverage Status License Latest Stable Version

Twitter Follow

Also available:


About WhichBrowser

But why almost completely useless and not completely useless? Well, there is always an exception to the rule. There are valid reasons to do browser sniffing: to improve the user experience or to gather intelligence about which browsers are used on your website. My website is html5test.com and I wanted to know which score belongs to which browser. And to do that you need a browser sniffing library.

Why is it extremely complicated?
Because everybody lies. Seriously, there is not a single browser that is completely truthful. Almost all browsers say they are Netscape 5 and almost all WebKit browsers say they are based on Gecko. Even Internet Explorer 11 now no longer claims to be IE at all, but instead an unnamed browser that is like Gecko. And it gets worse. That is why it is complicated.

What kind of information does it give? You get a nice object which has information about the browser, rendering engine, os and device. It gives you names and versions and even device manufacturer and model. And WhichBrowser is pretty tenacious. It gives you info that others don't. For example:

JUC (Linux; U; 2.3.6; zh-cn; GT-I8150; 480*800) UCWEB8.7.4.225/145/800  
UC Browser 8.7 on a Samsung Galaxy W running Android 2.3.6

Android is never mentioned

Mozilla/5.0 (Series40; Nokia501/10.0.2; Profile/MIDP-2.1 Configuration/CLDC-1.1) Gecko/20100401 S40OviBrowser/3.0.0.0.73  
Nokia Xpress 3.0.0 on a Nokia Asha 501 running Nokia Asha Platform

Despite the useragent header claiming to be a Series40 device, we know it's actually running the Asha Platform and we also know that OviBrowser has been renamed to Nokia Xpress.

Opera/9.80 (X11; Linux zvav; U; zh) Presto/2.8.119 Version/11.10  
Opera Mini on a Nokia 5230 running Series60 5.0

The useragent header looks like Opera 11.10 on Linux, but we know it's Opera Mini. We can even figure out the real operating system and device model from other headers.

Requirements

WhichBrowser requires with PHP 7.0 or higher and supports PHP 8. WhichBrowser is compatible with the PSR-4 autoloading standard and follows PSR-1 and PSR-2 coding style.

How to install it

You can install WhichBrowser by using Composer - the standard package manager for PHP. The package is called whichbrowser/parser.

composer require whichbrowser/parser

You can easily update WhichBrowser by running a simple command.

composer update whichbrowser/parser

You should run this command as often as possible. You might even want to consider setting up a cron job for this purpose.

How to use it

The first step require the Composer autoloader:

<?php

    require 'vendor/autoload.php';

The second step is to create a new WhichBrowser\Parser object. This object will contain all the information the library could find about the browser. The object has a required parameter, either the headers send by the browser, or a useragent string. Using the headers is preferable, because it will allow a better detection, but if you have just the useragent string, this will also work.

For example:

$result = new WhichBrowser\Parser(getallheaders());

or:

$result = new WhichBrowser\Parser($_SERVER['HTTP_USER_AGENT']);

The variable $result now contains an object which you can query for information. There are various ways to access the information.

First of all, you can call to toString() function to get a human readable identification:

"You are using " . $result->toString();
// You are using Chrome 27 on OS X Mountain Lion 10.8

Another possiblity is to query the object:

$result->isType('desktop');
// true

$result->isType('mobile', 'tablet', 'media', 'gaming:portable');
// false

$result->isBrowser('Maxthon', '<', '4.0.5');
// false

$result->isOs('iOS', '>=', '8');
// false

$result->isOs('OS X');
// true

$result->isEngine('Blink');
// true

You can also access these properties directly:

$result->browser->toString();
// Chrome 27  

$result->engine->toString();
// Blink

$result->os->toString();
// OS X Mountain Lion 10.8

Or access parts of these properties directly:

$result->browser->name;
// Chrome

$result->browser->name . ' ' . $result->browser->version->toString();
// Chrome 27

$result->browser->version->value;
// 27.0.1453.110

$result->engine->name;
// Blink

Finally you can also query versions directly:

$result->browser->version->is('>', 26);
// true

$result->os->version->is('<', '10.7.4');
// false

Options

It is possible to set additional options by passing an array as the second parameter when creating the Parser object.

Disabling detection of bots

In some cases you may want to disable the detection of bots. This allows the bot the deliberately fool WhichBrowser, so you can pick up the identity of useragent what the bot tries to mimic. This is especially handy when you want to use WhichBrowser to switch between different variants of your website and want to make sure crawlers see the right variant of the website. For example, a bot that mimics a mobile device will see the mobile variant of you site.

$result = new WhichBrowser\Parser(getallheaders(), [ 'detectBots' => false ]);

Enable result caching

WhichBrowser supports PSR-6 compatible cache adapters for caching results between requests. Using a cache is especially useful if you use WhichBrowser on every page of your website and a user visits multiple pages. During the first visit the headers will be parsed and the result will be cached. Upon further visits, the cached results will be used, which is much faster than having to parse the headers again and again.

There are adapters available for other types of caches, such as APC, Doctrine, Memcached, MongoDB, Redis and many more. The configuration of these adapters all differ from each other, but once configured, all you have to do is pass it as an option when creating the Parser object, or use the setCache() function to set it afterwards. WhichBrowser has been tested to work with the adapters provided by PHP Cache. For a list of other packages that provide adapters see Packagist.

For example, if you want to enable a memcached based cache you need to install an extra composer package:

composer require cache/memcached-adapter

And change the call to WhichBrowser/Parser as follows:

$client = new \Memcached();
$client->addServer('localhost', 11211);

$pool = new \Cache\Adapter\Memcached\MemcachedCachePool($client);

$result = new WhichBrowser\Parser(getallheaders(), [ 'cache' => $pool ]);

or

$client = new \Memcached();
$client->addServer('localhost', 11211);

$pool = new \Cache\Adapter\Memcached\MemcachedCachePool($client);

$result = new WhichBrowser\Parser();
$result->setCache($pool);
$result->analyse(getallheaders());

You can also specify after how many seconds a cached result should be discarded. The default value is 900 seconds or 15 minutes. If you think WhichBrowser uses too much memory for caching, you should lower this value. You can do this by setting the cacheExpires option or passing it as a second parameter to the setCache() function.

API reference

The Parser object

After a new WhichBrowser\Parser object is created, it contains a number of properties and functions. All of these properties are guaranteed to be present.

Properties:

  • browser
    an object that contains information about the browser itself
  • engine
    an object that contains information about the rendering engine
  • os
    an object that contains information about the operating system
  • device
    an object that contains information about the device

Functions:

getType()
Returns the type and subtype property of the device object. If a subtype is present it is concatenated to the type and seperated by a semicolor, for example: mobile:smart or gaming:portable. If the subtype is not applicable, it just return the type, for example: desktop or ereader.

isType($type [,$type [,$type [,$type]]])
If a single argument is used, the function returns true if the argument matches the type propery of device object. The argument can optionally also provide a subtype by concatenating it to the type and seperating it with a semicolon. It can use multiple arguments in which case the function returns true if one of the arguments matches. If none of the arguments matches, it returns false

isMobile()
Return true if the browser is a mobile device, like a phone, tablet, ereader, camera, portable media player, watch or portable gaming console. Otherwise it returns false.

isBrowser($name [, $comparison, $version])
Is used to query the name and version property of the browser object. The funcion can contain a single argument to a simple comparison based on name, or three arguments to compare both name and version. The first argument always contains the name of the browser. The second arguments is a string that can container either <, <=, =, => or >. The third is an integer, float or string that contains the version. You can use versions like 10, 10.7 or '10.7.4'. For more information about how version comparisons are performed, please see the is() function of the Version object.

isEngine($name [, $comparison, $version])
Is used to query the name and version property of the engine object. This function works in exactly the same way as isBrowser.

isOs($name [, $comparison, $version])
Is used to query the name and version property of the os object. This function works in exactly the same way as isBrowser.

isDetected()
Is there actually some browser detected, or did we fail to detect anything?

toString()
Get a human readable representation of the detected browser, including operating system and device information.

The browser object

An object of the WhichBrowser\Model\Browser class is used for the browser property of the main WhichBrowser\Parser object and contains a number of properties. If a property is not applicable in this situation it will be null or undefined.

Properties:

  • name
    a string containing the name of the browser
  • alias
    a string containing an alternative name of the browser
  • version
    a version object containing information about the version of the browser
  • stock
    a boolean, true if the browser is the default browser of the operating system, false otherwise
  • channel
    a string containing the distribution channel, ie. 'Nightly' or 'Next'.
  • mode
    a string that can contain the operating mode of the browser, ie. 'proxy'.
  • hidden
    a boolean that is true if the browser does not have a name and is the default of the operating system.
  • family
    an object that contains information about to which family this browser belongs
  • using
    an object that contains information about to which kind of webview this browser uses

Functions:

isFamily($name)
Does the family of this browser have this name, or does the browser itself have this name.

isUsing($name)
Is the browser using a webview using with the provided name.

getName()
Get the name of the browser

getVersion()
Get the version of the browser

toString()
Get a human readable representation of the detected browser

The engine object

An object of the WhichBrowser\Model\Engine class is used for the engine property of the main WhichBrowser\Parser object and contains a number of properties. If a property is not applicable in this situation it will be null or undefined.

Properties:

  • name
    a string containing the name of the rendering engine
  • version
    a version object containing information about the version of the rendering engine

Functions:

getName()
Get the name of the rendering engine

getVersion()
Get the version of the rendering engine

toString()
Get a human readable representation of the detected rendering engine

The os object

An object of the WhichBrowser\Model\Os class is used for the os property of the main WhichBrowser\Parser object and contains a number of properties. If a property is not applicable in this situation it will be null or undefined.

Properties:

  • name
    a string containing the name of the operating system
  • version
    a version object containing information about the version of the operating system
  • family
    an object that contains information about to which family this operating system belongs

Functions:

isFamily($name)
Does the family of this operating system have this name, or does the operating system itself have this name.

getName()
Get the name of the operating system

getVersion()
Get the version of the operating system

toString()
Get a human readable representation of the detected operating system

The device object

An object of the WhichBrowser\Model\Device class is used for the device property of the main WhichBrowser\Parser object and contains a number of properties. If a property is not applicable in this situation it will be null or undefined.

Properties:

  • type
    a string containing the type of the browser.
  • subtype
    a string containing the subtype of the browser.
  • identified
    a boolean that is true if the device has been positively identified.
  • manufacturer
    a string containing the manufacturer of the device, ie. 'Apple' or 'Samsung'.
  • model
    as string containing the model of the device, ie. 'iPhone' or 'Galaxy S4'.

The type property can contain any value from the following list:

  • desktop
  • mobile
  • pda
  • dect
  • tablet
  • gaming
  • ereader
  • media
  • headset
  • watch
  • emulator
  • television
  • monitor
  • camera
  • printer
  • signage
  • whiteboard
  • devboard
  • inflight
  • appliance
  • gps
  • car
  • pos
  • bot
  • projector

If the type is "mobile", the subtype property can contain any value from the following list:

  • feature
  • smart

If the type is "gaming", the subtype property can contain any value from the following list:

  • console
  • portable

Functions:

getManufacturer()
Get the name of the manufacturer

getModel()
Get the name of the model

toString()
Get a human readable representation of the detected device

The family object

An object of the WhichBrowser\Model\Family class is used for the family property of the WhichBrowser\Model\Browser and WhichBrowser\Model\Os object and contains a number of properties. If a property is not applicable in this situation it will be null or undefined.

Properties:

  • name
    a string containing the name of the family
  • version
    a version object containing information about the version of the family

Functions:

getName()
Get the name of the family

getVersion()
Get the version of the family

toString()
Get a human readable representation of the family

The using object

An object of the WhichBrowser\Model\Using class is used for the using property of the WhichBrowser\Model\Browser object and contains a number of properties. If a property is not applicable in this situation it will be null or undefined.

Properties:

  • name
    a string containing the name of the webview
  • version
    a version object containing information about the version of the webview

Functions:

getName()
Get the name of the webview

getVersion()
Get the version of the webview

toString()
Get a human readable representation of the webview

The version object

An object of the WhichBrowser\Model\Version class is used for the version property of the browser, engine and os object and contains a number of properties and functions. If a property is not applicable in this situation it will be null or undefined.

Properties:

  • value
    a string containing the original version number.
  • alias
    a string containing an alias for the version number, ie. 'XP' for Windows '5.1'.
  • nickname
    a string containing a nickname for the version number, ie. 'Mojave' for OS X '10.14'.
  • details
    an integer containing the number of digits of the version number that should be printed.

Functions:

is($version) or is($comparison, $version)
Using this function it is easy to compare a version to another version. If you specify only one argument, this function will return if the versions are the same. You can also specify two arguments, in that case the first argument contains the comparison operator, such as <, <=, =, => or >. The second argument is the version you want to compare it to. You can use versions like 10, 10.7 or '10.7.4', but be aware that 10 is not the same as 10.0. For example if our OS version is 10.7.4:

$result->os->version->is('10.7.4');
// true

$result->os->version->is('10.7');
// true

$result->os->version->is('10');
// true

$result->os->version->is('10.0');
// false

$result->os->version->is('>', '10');
// false

$result->os->version->is('>', '10.7');
// false

$result->os->version->is('>', '10.7.3');
// true

parser-javascript's People

Contributors

anandchowdhary avatar codacy-badger avatar dependabot-support avatar dependabot[bot] avatar koconder avatar mariotsi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

parser-javascript's Issues

Crash for some user-agents

I recently tried to use this library for parsing a bunch of user-agents but it crashed for the following one:

Mozilla/5.0 (Linux; U; Android 4.1.1; en-us; O+ 8.36 Android Build/Oplus8.36_Oplus) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

I used the following code, which worked just fine on many user-agents before crashing on the one I mentioned above:

'use strict';

const WhichBrowser = require('which-browser');

const useragent = 'Mozilla/5.0 (Linux; U; Android 4.1.1; en-us; O+ 8.36 Android Build/Oplus8.36_Oplus) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30';

// It is using a hard-coded user agent here, but this is how I was successfully using the library with other
// user-agents
const info = new WhichBrowser(useragent, {
  cache: WhichBrowser.SIMPLE_CACHE,
  cacheExpires: 90
});

console.log('Done!');

Here is the error:

/home/user/test/which-browser/node_modules/which-browser/src/data/DeviceModels.js:200
                for (let m2 of Object.keys(list[v] || list[originalV])) {
                                      ^

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Function.identifyList (/home/user/test/which-browser/node_modules/which-browser/src/data/DeviceModels.js:200:39)
    at Function.identifyAndroid (/home/user/test/which-browser/node_modules/which-browser/src/data/DeviceModels.js:145:33)
    at Function.identify (/home/user/test/which-browser/node_modules/which-browser/src/data/DeviceModels.js:25:29)
    at Useragent.detectAndroid (/home/user/test/which-browser/node_modules/which-browser/src/Analyser/Header/Useragent/Os.js:325:35)
    at Useragent.detectOperatingSystem (/home/user/test/which-browser/node_modules/which-browser/src/Analyser/Header/Useragent/Os.js:20:22)
    at new Useragent (/home/user/test/which-browser/node_modules/which-browser/src/Analyser/Header/Useragent.js:13:30)
    at Analyser.analyseUserAgent (/home/user/test/which-browser/node_modules/which-browser/src/Analyser/Header.js:74:5)
    at Analyser.analyseHeaders (/home/user/test/which-browser/node_modules/which-browser/src/Analyser/Header.js:11:31)
    at Analyser.analyse (/home/user/test/which-browser/node_modules/which-browser/src/Analyser.js:45:27)

I also noticed something interesting: the user-agent mentioned above can be successfully parsed by https://whichbrowser.net/tryout/

Contribute unidentified device data

Hello!

Is there a simple way to contribute devices back which the library fails to identify? Like a form on a website or an api or something?

/Per

Support for three-digit version numbers?

Chrome and Firefox will soon reach version 100.

This article describes how this might break libraries that parse the user-agent:
https://hacks.mozilla.org/2022/02/version-100-in-chrome-and-firefox/

Additionally, it seems that Chromium 100 brings even more changes to the user-agent string:
https://www.xda-developers.com/chrome-100-beta/

I have not seen any issues, prs or release notes of the which-browser package that are related to this issue.

Is the current version of which-browser forward compatible with three-digit browser version numbers?

Is there a way to detect old browsers like IE11?

I'm writing at the moment this or this and I don't know how I can detect IE11 or older Browsers.

I would need to see a database for all browser footprints and then decide if they are to old or not.

Has anyone a suggestion on how this could be done the best way?

The thing is I don't want old browsers like Safari el Capitan and those old things on my website, because they would break all the features ... Must think about using Modernizr....

Would be best an option without a heavy metal regex script....

Kind regards,
Daniel Oberlechner

Love it!

If you want I can invite you to the WhichBrowser project on Github. I'd love to make this the official JavaScript port of WhichBrowser!

TypeError: Cannot read property 'toFloat' of null

/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header/Useragent/Browser.js:1205
if (this.data.os.name === 'Windows Phone' && this.data.os.version.toFloat() >= 8) {
^
TypeError: Cannot read property 'toFloat' of null
at Useragent.detectUC (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header/Useragent/Browser.js:1205:75)
at Useragent.detectBrowser (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header/Useragent/Browser.js:33:22)
at new Useragent (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header/Useragent.js:15:27)
at Analyser.analyseUserAgent (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header.js:74:5)
at Analyser.analyseHeaders (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header.js:11:31)
at Analyser.analyse (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser.js:45:27)
at Parser.analyse (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Parser.js:55:14)
at new Parser (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Parser.js:21:12)
at Interface. (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/parse:34:17)
at Interface.emit (events.js:160:13)

OS Version toString() fails

TypeError: Cannot read property 'toString' of undefined.

When using Ubuntu desktop info:

ThinkPad-L540 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

the result.os.version.toString() fails due os.version is undefined. Result object:
Parser { browser: Browser { stock: false, hidden: false, mode: '', type: 'browser', name: 'Firefox', version: Version { hidden: false, value: '55.0' }, family: null }, engine: Engine { name: 'Gecko', version: Version { hidden: false, value: '55.0', details: 3 } }, os: Os { hidden: false, name: 'Ubuntu' }, device: Device { type: 'desktop', subtype: '', identified: 0, generic: true, hidden: false }, camouflage: false, features: [] }

How to update devices?

Hi. I'm trying to bring at least all of the android phones up to date and thought that is was a long winded but simple task of adding the new devices along with model codes to data/models-android.js. But it seems that this is not the case at all. I then read through some of the code to try and work what is going on and from my understanding , the model prefix has to be added to data/indices/models-androids.js, which I did, but the devices I've added are still not being recognised. So if you could help me it would be greatly appreciated and I promise to pass on the updates once I've finished.

Thanks.

device.identified is an integer

It looks like device.identified is an integer, not a boolean, as it says in the ReadMe. Is there any significance to the number?

"device": {
    "type": "gaming",
    "subtype": "console",
    "identified": 4,
    "generic": false,
    "hidden": false,
    "manufacturer": "Sony",
    "model": "PlayStation 4",
    "series": null,
    "carrier": null,
    "identifier": null
  },

JS Build File / Distrubtion

ES6, NPM, and Yarn Dummy here.... trying to suss out how to add to a jsFiddle or Plunk or other webproject that doesn't have those build engines baked in. Is there a simple JS build file that contains the output of the project. Is it possible to build one a put it in a /dist folder?

Microsoft Edge bug?, Television?

Hi! I'm using the plugin in an Ionic project, everything seems to be working fine.

Works on Android, iOS, browsers like Chrome, Firefox, Safari.

All good, except Microsoft Edge 16.

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299

It crashes when I instantiate the WhichBrowser object.

Debugging in Microsoft Edge debugger, Shows that it crashes in a line (if statement)

here's the internal file: Television.js

/* Generic model information */

  static detectGenericTelevisionModels(ua) {
    let match;
    if ((match = /\(([^,(]+),\s*([^,(]+),\s*(?:[Ww]ired|[Ww]ireless)\)/u.exec(ua))) {               //  <----- IT CRASHES HERE
      const vendorName = Manufacturers.identify(Constants.deviceType.TELEVISION, match[1]);
      const modelName = match[2].trim();

There it is, the if statement.

Is this bug? What am I doing wrong?

Incorrect browser engine detection

Samsung Tizen TVs sail under false flag; their user-agent string does not reflect actual browser engine, or engine version.

Detected by WhichBrowser
Samsung_WB

Specified by Samsung
Samsung_actual

User-agent strings

        title        |                                                     user_agent                                                     
---------------------+--------------------------------------------------------------------------------------------------------------------
 Tizen 2017          | Mozilla/5.0 (SMART-TV; LINUX; Tizen 3.0) AppleWebKit/538.1 (KHTML, like Gecko) Version/3.0 TV Safari/538.1
 Tizen 2018 FHD      | Mozilla/5.0 (SMART-TV; LINUX; Tizen 4.0) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 TV Safari/537.36
 Tizen 2018 Standard | Mozilla/5.0 (SMART-TV; LINUX; Tizen 4.0) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 TV Safari/537.36
 Tizen 2019          | Mozilla/5.0 (SMART-TV; LINUX; Tizen 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Version/5.0 TV Safari/537.36
 Tizen 2020 Standard | Mozilla/5.0 (SMART-TV; LINUX; Tizen 5.5) AppleWebKit/537.36 (KHTML, like Gecko) 69.0.3497.106/5.5 TV Safari/537.36
 Tizen 2020 Premium  | Mozilla/5.0 (SMART-TV; LINUX; Tizen 5.5) AppleWebKit/537.36 (KHTML, like Gecko) 69.0.3497.106/5.5 TV Safari/537.36
 Tizen 2021 Premium  | Mozilla/5.0 (SMART-TV; LINUX; Tizen 6.0) AppleWebKit/537.36 (KHTML, like Gecko) 76.0.3809.146/6.0 TV Safari/537.36
 Tizen 2021 Standard | Mozilla/5.0 (SMART-TV; LINUX; Tizen 6.0) AppleWebKit/537.36 (KHTML, like Gecko) 76.0.3809.146/6.0 TV Safari/537.36
 Tizen 2022          | Mozilla/5.0 (SMART-TV; LINUX; Tizen 6.5) AppleWebKit/537.36 (KHTML, like Gecko) 85.0.4183.93/6.5 TV Safari/537.36

I believe it would still be possible to correctly map browser engines by generating a fingerprint from their Modernizr profile, and compare to a fingerprint database generated from different browser engines and versions. I'm not sure, but it might be out of scope for this project?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.