This file contains 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
- Copy/paste the JS code block below under a `{{[[roam/js]]}}` block on any page (import does not format it correctly). | |
- Doc on roam/js extensions: https://roamresearch.com/#/app/help/page/3l_9j6aAv | |
- {{[[roam/js]]}} | |
- ```javascript | |
function checkTitle() { | |
const t = document.title, r = 'Roam: '; | |
if (!t.startsWith(r)) { document.title = r + t; } | |
}; | |
new MutationObserver(checkTitle).observe( | |
document.querySelector('title'), |
OlderNewer