Hum when I visit some websites like duckduckgo.com or qwant.com it triggers an in-website small popup to install their browser extension. The catch is they correctly identify I’m using Brave.
As it’s not mentioned in my UserAgent, how do they do that?
Can you share an image of the pop-up you’re referring to?
Is this what you’re looking for? https://github.com/brave/brave-core/blob/master/script/lib/l10n/grd_string_replacements.py
They’re very likely using the navigator.brave.isBrave promise that we expose in lieu of a distinct user agent string. This method can be used to identify the browser as Brave, and thus offer distinct extensions and more to the user as a result.
Are there any privacy implications of using it? It seems to be detecting it via javascript rather than UA from http header, I think it might be a good thing then from privacy point.
This has the drawback of requiring sites to add special detection methods for Brave, leading to greatly under-estimated - if not completely ignored - market share measurement.
Solution used by Vivaldi is more elegant: they expose their full User Agent selectively.




