SSL Redirect

Redirect from HTTP to HTTPS

  1. // ==UserScript==
  2. // @name SSL Redirect
  3. // @version 1.0
  4. // @namespace https://github.com/hemlok89/SSL-Redirector
  5. // @description Redirect from HTTP to HTTPS
  6. // @author hemlok89
  7. // @match http://*/*
  8. // @exclude http://192.168.0.1/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. window.location.protocol = 'https:';