Delegate without events - call function when selection is matched

Delegate without events - call function when selection is matched

I tried to use delegate, but it is bounded with events. I don't really want to execute a function on a standard event. But I would need to change the elements that match a selector, when they appear in dom. Is possible to "unhook" delegate from events?

like for all existing and new elements with class ".red" to add to the "data" a new key "initiated:true".

Thanks!