If a lamp cord or plug are brittle or damaged, rewire the lamp with a new cord that has an integrated plug. If the plug has a cracked body or loose prongs but the cord is in good shape, install a replacement plug.
Always grasp the plug when you pull a plug out of a receptacle. If you tug on the cord, you may loosen or break wiring connections in the plug. Organize and run your cords to minimize tripping hazards.
About 10 minutes
Phillips screwdriver, cutting pliers, utility knife, wire strippers, long-nose pliers
Cutting and twisting stranded wire; attaching stranded wire to terminals
A suitable work surface
Replacement plug, cord switch
To replace a plug snip the cord near the old plug, divide the cord, and strip 3/4 inch of insulation from the end of each wire. Slip the wires through the replacement plug and connect them to the terminals. Tug to check the connections, and make sure there are no loose strands.
To add a squeeze-type replacement plug, snip off the old plug and feed the cord through the new plug body. Place the prongs over the cord and push the cord completely into the prong core. Squeeze the prongs tight. Slide the body up and snap it onto the core.
For an appliance, choose a heavy-duty plug with a grounding prong. Working carefully with a knife to avoid cutting into wire insulation, strip about 2 inches of sheathing from the end of the cord. Strip about 3/4 inch from the ends of each wire and twist the wire strands tight.