Mercurial > ec-userscripts
view nginx-https.user.js @ 136:1e64e81370a3
Add nginx-https
author | nanaya <me@nanaya.net> |
---|---|
date | Tue, 27 Feb 2024 01:17:43 +0900 |
parents | |
children |
line wrap: on
line source
// ==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://');