Stable 1T-phase MoS2 as an effective electron mediator promoting photocatalytic hydrogen production.