How do I make this work?

My car didn’t originally come with electric windows, so one of the previous owners did some DIY. I bought new “original” switches to replace the old broken ones, but discovered the old switches have some different kind of connectors. What do I have to do to make the new switches work?

My car didn’t originally come with electric windows, so one of the previous owners did some DIY. I bought new “original” switches to replace the old broken ones, but discovered the old switches have some different kind of connectors. What do I have to do to make the new switches work?