A simple way to control superconductivity