Nacho,
As promised, I have posted the wiring diagram below. This diagram is from a Haynes Repair Manual for 1996-2000 model year Tacomas, T-100's, and 4-Runners. The diagrams below are for a TACOMA 3.4l V-6, but they should be identical to the wiring on the 4-Runner's 3.4l V-6. Per the FSM link I posted earlier, (
http://www.ncttora.com/fsm/1996/SIL...2rmsour/2002/024runne/di/eg5vzfe/cip0325p.pdf) code P0330 indicates a "Knock Sensor 2 Circuit Malfunction (Bank 2)". This is the sensor on the left bank... the wire going to this sensor should be GREY. (BTW, also note the BROWN wire going to ground.)
Assuming this is your bad sensor, in order to do the splice and send the GOOD signal from Knock Sensor 1 (Bank 1, on the right hand side) to both of the Knock Sensor signal input terminals on the ECU, you would have to cut the GREY wire, either at the ECU, or at the harness. You would then take the end of the GREY wire that goes INTO THE ECU and splice it into the BLACK wire. Do not cut the black wire, just strip off some insulation, tap the GREY wire into the BLACK wire, solder it, and cover the splice with some electrical tape.
The end of the GREY wire going into Knock Sensor 2 (Bank 2, left hand side), would simply need to be taped off. It will no longer be connected to anything but the knock sensor itself.
And here's a shot of the wiring diagram that shows the wiring coming off the Engine Coolant Temperature Sensor, the green/yellow and brown/black. This is what led me to believe you may be looking at the wrong harness.