What is this mystery component
They are used to splice (unstripped) wires together. They contain a small piece of metal that joins the wires when the colored part is compressed, as well as some containing a gel that insulates the wires from the elements making them suitable for outdoors use.