I was wondering if it is possible to wire an on/off switch into the cable of a wall-wart USB power charger as easily as it is to wire an on/off switch into a regular power cable? Or are there precautions that should be taken into consideration before attempting to do such a thing. I've seen extension cables with these switches on them so I know it is possible but they seem too expensive for what seems like an easy job to do yourself. Attached is a picture of the charger which I'd like to do this to.
Thanks