Skip to content

Instantly share code, notes, and snippets.

@LeoJofer
Created November 10, 2025 23:09
Show Gist options
  • Select an option

  • Save LeoJofer/27fde9c35b6f7bb46b0efa707cca6e92 to your computer and use it in GitHub Desktop.

Select an option

Save LeoJofer/27fde9c35b6f7bb46b0efa707cca6e92 to your computer and use it in GitHub Desktop.
Find out if a user is using brave
<!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