How to detect Blink in Chrome

Viewed 4139

Is there any way to detect that the user is coming with Blink or Webkit powered Chrome engine? By the way i'm also curious about if i can check somewhere if my browser is with blink or not.

2 Answers

[...] detect that the user is coming with Blink or Webkit powered Chrome engine

I guess the question is looking for a solution to detect "Chromium" browser regardless how its engine is called ("Webkit", "Blink", "FutureEngine3000") or how the browser is commercially called ("Chrome", "Edge", "Brave"*, ...).

In that case, try the User-Agent Client Hints API:

{
  const isChromium = brand => brand.brand === "Chromium";
  console.log(!!globalThis.navigator?.userAgentData?.brands?.some(isChromium));
}

For other properties, see https://user-agent-client-hints.glitch.me/javascript.html.


* Some browsers explicitly hide navigator.userAgentData from being read. See e.g. Brave PR 11932.

Related