Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Last active October 13, 2022 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/9b7ac0dcc23a3569925f1ffc62219497 to your computer and use it in GitHub Desktop.
Save nolanlawson/9b7ac0dcc23a3569925f1ffc62219497 to your computer and use it in GitHub Desktop.
Unread indicator
<!doctype html>
<html>
<head>
<title>Tab title</title>
</head>
<body>
<h1>Unread indicator – load, pin and wait 10 seconds</h1>
<script type=module>
let count = 0
const title = document.title
setInterval(() => {
document.title = `(${++count}) ${title}`
}, 10000)
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment