Now it's only possible with the DisplayPostInfo script from BrokenEagle98 on Danbooru since the attribute got removed 2 years ago.
Only the "data-is-favorited" is needed to apply CSS styles to it.
.post-preview[data-is-favorited="true"] { opacity: 0.5; } .post-preview[data-is-favorited="true"]:hover { opacity: 1.0; }
Any plans to add it?
Updated