Mercurial > ec-userscripts
comparison 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 | 15ec4ec958d7 |
comparison
equal
deleted
inserted
replaced
| 135:59c8866710f8 | 136:1e64e81370a3 |
|---|---|
| 1 // ==UserScript== | |
| 2 // @name https nginx/freenginx | |
| 3 // @namespace https://nanaya.net | |
| 4 // @match http://freenginx.org/* | |
| 5 // @match http://nginx.org/* | |
| 6 // @run-at document-start | |
| 7 // @version 1.0.0 | |
| 8 // @author nanaya | |
| 9 // @description Redirect http to https for nginx | |
| 10 // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/nginx-https.user.js | |
| 11 // ==/UserScript== | |
| 12 | |
| 13 'use strict'; | |
| 14 | |
| 15 window.location = window.location.href.replace('http://', 'https://'); |
