I won't comment on the value/risk of this modification, this has been beaten to death elsewhere on this forum.
If you have a stock wiring harness, you will find a white/blue wire running from one side of the ballast resistor. The other side of the ballast resistor goes to the coil. If you have an EI then the white/blue feeds the EI and the ballast resistor has been taken out of the circuit. Assuming the switch on your valve is normally closed when the valve is open, then you want to wire this switch between the white/blue wire and the ballast resistor (or EI). This wire is also white/yellow where it comes from the kill button on the handlebar switch (changing color in the big gang connector under the tank), so can be spliced into there if you prefer.