Programming scale-free optics in disordered ferroelectrics