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