How to force trim to always pull curves to its surface?

Wonder if that can be “baked” into a single button, similar to what @Pascal did for me here, including deletion of the temporary extruded object?