As voters turn to the right, the Greens are hoping to profit from the woes of a discredited Labour party