C
C
cyberlain2015-09-15 13:55:33
css
cyberlain, 2015-09-15 13:55:33

Is it possible to determine through javascript that the user is using the uc browser (with its own engine)?

in those answers that I found, a script is used to determine the browser from the ready list (browsers that everyone knows about). But in the case of uc browser which is made on its own U3 Kernel engine, this will not work? how to determine by javascript that uc browser is used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2015-09-15
@miraage

Download this browser.
Type in navigator.userAgent in the console - get an agent.
Use the desired indexOf substring.
Example in vacuum:

if (navigator.userAgent.indexOf("u3 kernel") !== -1) {
  // UC Browser
}

// UPDATE
If feature-detector is needed - Modernizr .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question