Mercurial > ec-userscripts
annotate nginx-https.user.js @ 147:15ec4ec958d7 default tip
Sentence case name and match filename (sort of)
author | nanaya <me@nanaya.net> |
---|---|
date | Sat, 27 Sep 2025 15:06:06 +0900 |
parents | 1e64e81370a3 |
children |
rev | line source |
---|---|
136 | 1 // ==UserScript== |
147
15ec4ec958d7
Sentence case name and match filename (sort of)
nanaya <me@nanaya.net>
parents:
136
diff
changeset
|
2 // @name nginx https |
136 | 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://'); |