Turning NSFW into a sharp general filter plugin?
Hi, i am relatively new to Hubzilla.
I am trying to turn the NSFW plugin into a usable general purpose filter,
but am stuck with the code.
My aim is to make filtered posts look similar to this:

so that filtered words stay visible but not take much space in a stream.
By now i got this far:

As you can see this still takes way too much space. I want to replace not just the body of a post, but the whole of a post with just one line between borders, eventually preserving the original poster name.
While pondering the plugin code I'd need some expertise on where exactly the page rendering is coming from, so that i can replace a complete post as in the 2nd image with a tiny one liner as in the 1st image.
Includes in plug-in code get me nowhere familiar. The network of files that work in conjunction with an add-on is unoverseeable to me yet.
Anybody knows more or could spend 10 mins with me on this?Thank you in advance!