Created
November 10, 2025 23:09
-
-
Save LeoJofer/27fde9c35b6f7bb46b0efa707cca6e92 to your computer and use it in GitHub Desktop.
Find out if a user is using brave
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <!doctype html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>BraveIdent</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| </head> | |
| <body> | |
| <h1>Are you using brave?</h1> | |
| <div id="brave-status"></div> | |
| <script type="module"> | |
| const isBrave = await(navigator.brave && await navigator.brave.isBrave() || false) | |
| document.getElementById('brave-status').innerText = isBrave ? 'Yes' : 'No'; | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment