Adding photoacid to a special kind of melted polymeric crystal allows better and switchable proton conductivity. This could lead to new materials for memory, supercapacitor and transistor technologies.