Thanks ![]()
I removed the post metadata part as I want this email icon to be shown. ![]()
This is what I am using now to remove the content and hide it via CSS just in case.
<script type="text/discourse-plugin" version="0.8">
api.decorateCookedElement((element, helper) => {
if (helper?.getModel().via_email) {
element.querySelector('details.elided').remove();
}
}, { onlyStream: true });
</script>
.cooked details.elided {
display: none;
}
Thank you for this code
![]()