Mercurial > ec-userscripts
view 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 |
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://');