Force HTTPS Redirect

Automatically redirect HTTP pages to HTTPS without blocking

// ==UserScript==
// @name         Force HTTPS Redirect
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Automatically redirect HTTP pages to HTTPS without blocking
// @author       Rishabh
// @match        http://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if (location.protocol === 'http:') {
        location.href = location.href.replace('http:', 'https:');
    }
})();