Simple snippet to hide block link hashes

This snippet solves the problem described in this video.

The ^r4nd0M hashes that are generated when you deep link text blocks aren’t aesthetic and grab your attention. So, I made this snippet the most intuitive way IMO: This snippet hides those hashes in live preview mode. But it still will show if your cursor is at the same line. And it will also show in the source mode in order to keep a way to find those hashes.

.cm-s-obsidian.is-live-preview :not(.cm-active) > .cm-blockid  {
    display: none;
 }