How to add a light switch to an extension cord?

Hello. I want to add a standard light switch to the middle of an extension cord. Can anyone tell me how this can be or or if its possible??

Shoddy diagram of what im trying to accomplish:
=D~~~~[r]~~~~B

Thanks.
7 answers 7