How do I replicate the results of your

I am wondering how to replicate the results of the last screenshot for this plugin (I will attach a screenshot) without me having to go in and modify the code of the each time I update I have to re-modify the code and test, make sure I didn't screw up the code, etc etc...its a huge hassle.

Would love to have a way to make the plugin work like the screenshots.

Please advise.