I did tie into all the wiring just like you said. Black hot, white common, Yellow to compressor.
I was going to do that exact thing your thinking about and tie into the wiring at the bottom hinge where the wiring comes into the door, and this is what you will have to do. From where it enters...