# HG changeset patch # User nanaya # Date 1708964263 -32400 # Node ID 1e64e81370a386bafc3601e86ade19dfda92c4f7 # Parent 59c8866710f86f43d73790c18bfadac19a4e8a51 Add nginx-https diff -r 59c8866710f8 -r 1e64e81370a3 nginx-https.user.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nginx-https.user.js Tue Feb 27 01:17:43 2024 +0900 @@ -0,0 +1,15 @@ +// ==UserScript== +// @name https nginx/freenginx +// @namespace https://nanaya.net +// @match http://freenginx.org/* +// @match http://nginx.org/* +// @run-at document-start +// @version 1.0.0 +// @author nanaya +// @description Redirect http to https for nginx +// @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/nginx-https.user.js +// ==/UserScript== + +'use strict'; + +window.location = window.location.href.replace('http://', 'https://');