I understand that its not a good way, but sometimes adding 2 lines of code is all what u need I would say it's more like "right here, right now solution" and if u need something more future proof then proceed to develop module.
Edit History
I understand that its not a good way, but sometimes adding 2 lines of code is what u need