changeset 136:1e64e81370a3

Add nginx-https
author nanaya <me@nanaya.net>
date Tue, 27 Feb 2024 01:17:43 +0900
parents 59c8866710f8
children 7a7aafa65bae
files nginx-https.user.js
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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://');