I think I posted it in the wrong section:
I want to change the way h? tags are rendered. Logic: If H? tag, then add element after. Do I have to write a widget or is there a much more simple way to do this?
Possible place: $:/core/modules/widgets/element.js