Last active
April 15, 2026 22:48
-
-
Save h43z/f7d702a932242dbce68e89cbbfe74918 to your computer and use it in GitHub Desktop.
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
| { | |
| document.addEventListener("DOMContentLoaded", _=> { | |
| const observer = new MutationObserver(() => { | |
| console.log('document title got updated'); | |
| observer.disconnect(); | |
| document.title += ` ${document.URL}`; | |
| observer.observe(document.querySelector('title'), { childList: true }); | |
| }); | |
| document.title += ` ${document.URL}`; | |
| observer.observe(document.querySelector('title'), { childList: true }); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment