Extension:SecureLinkFixer

The SecureLinkFixer extension automatically rewrites URLs to HTTPS if the domain always requires HTTPS. It uses the Mozilla HSTS preload list for the list of domains.

The rewrite is done on-the-fly as pages are parsed. No edits to the wiki are made, and the page source retains the original URL.

Inspiration

 * https://twitter.com/ajhdock/status/970669975861153792
 * https://www.facebook.com/notes/protect-the-graph/upgrades-to-facebooks-link-security/2015650322008442/