FORCE HTTPS

Redirects from HTTP to HTTPS

  1. // ==UserScript==
  2. // @name FORCE HTTPS
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @author NextDev65
  6. // @description Redirects from HTTP to HTTPS
  7. // @match http://*/*
  8. // @exclude http://localhost*/*
  9. // @exclude http://127.0.0.1/*
  10. // @run-at document-start
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. // @noframes
  17. window.location.protocol = 'https:';
  18. })();