annotate nginx-https.user.js @ 138:76e8b47bbb03
default tip
[lashinbang-always-consent] check for login state
It's now required to turn off age check limit.
author |
nanaya <me@nanaya.net> |
date |
Tue, 07 Jan 2025 16:07:50 +0900 |
parents |
1e64e81370a3 |
children |
|
rev |
line source |
136
|
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://');
|