In reply to Duncan Michael-MacGregor.

As a favor, if you're going to use this on client sites, let them know somehow you've added this. You'd be surprised the support requests that come to the Jetpack team asking why Jetpack isn't working to discover the site was put in dev mode by the original developer. :-)