I have been messing around with the Brave browser (https://www.brave.com/), an I cannot figure out how to determine how if a user is using Brave. I used a simple document to output the user agent:
<script>document.write(navigator.userAgent);</script>
and I get:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36
which doesn't really help me in my situation. Does anyone know how to determine anyone using Brave in PHP or JavaScript? Thanks!
navigator.userAgent
in the console of freshly downloaded Brave for mac from brave.com gives me:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) brave/0.9.0 Chrome/49.0.2623.108 Brave/0.37.3 Safari/537.36"
(see thebrave/0.9.0
part identifying that the browser is brave) – lxe