https everywhere

Make every page https with this very simple script!

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         https everywhere
// @namespace    https://www.youtube.com/watch?v=sHwvUFjaNdU
// @version      0.03
// @description  Make every page https with this very simple script!
// @author       You
// @match        http://*/*
// @icon         https://image.flaticon.com/icons/png/512/1652/1652335.png
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // this simple strip of code reloads the page to https!
    if (location.protocol !== "https:"){
 location.replace(window.location.href.replace("http:", "https:"));
}
})();