view nginx-https.user.js @ 137:7a7aafa65bae default tip

Update url
author nanaya <me@nanaya.net>
date Fri, 17 May 2024 15:03:30 +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://');