This is a userscript that was written with the help of MongoGPT. The script adds a ⧉ icon to every header on the page. When this icon is clicked, the script puts a link in the clipboard with the current header's text and href referring to the page and (optionally) the header id.
Navigate here: https://github.com/PavelSafronov/mongodb-tools/raw/refs/heads/main/tampermonkey/copy-title/script.user.js