Restoring input box changes after pressing the "Add input" button


A few plugins (for instance, Item Duplicator, or Simple Vocab) apply some changes to element input fields, like changing their background color, or turning them into dropdown boxes with a list of values. Those changes stay, unless a user presses the element’s add input button; I suspect because this one regenerates the whole content for that particular element, instead of just adding a new input box.

So, is there a way to find out when the add input button has been pressed, in order to restore the changes and to apply them to the newly added box as well?