Catch form events for ALL doctypes

Hi everyone,

I’ve got some javascript logic contained in an app that I need triggered on certain form events for all doctypes. I’m able to make the code happen for specific doctypes using a standard frappe.ui.form.on call, but this requires specific doctypes to be named. Is there a way to catch these events for all doctypes?