theoldwizard1 wrote:
If you are going to put a splice in the middle, it really should be in a metal handy box with a plain cover

Use Romex clamps to prevent the wire from pulling out and use some caulk to seal and holes. For good measure, run a bead of caulk around the edge of the cover before screwing it down.
You can't use Romex clamps on S/O cord. You can use these.

This would be better.
Splice Kits
Product Details
2237A
MANUFACTURER: 3M
DESCRIPTION: CABLE SPLICE KIT, COLD SHRINK, PORTABLE, USE ON 4 CONDUCTOR 12-10 AWG CABLE (UP TO 0.62" CABLE DIAMETER), VOLTAGE RATING UP TO 1000 V, MAXIMUM RECOMMENDED VOLTAGE RATING 600 VOLT
KIT INCLUDES:
1 NEOPRENE, COLD SHRINK TUBE
1 NEOPRENE, FILLER
5 BUTT CONNECTORS
2 STRIPS, SEALING MASTIC
1 ABRASIVE CLOTH
1 ROLL, WHITE PLASTIC ELECTRICAL TAPE
1 INSTRUCTION SHEET