Mercurial > ec-userscripts
view nginx-https.user.js @ 149:f4d054e191ed default tip
Reduce FOUC
author | nanaya <me@nanaya.net> |
---|---|
date | Wed, 01 Oct 2025 20:26:16 +0900 |
parents | 15ec4ec958d7 |
children |
line wrap: on
line source
// ==UserScript== // @name nginx https // @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://');