287 bytes added
, 22:12, 24 April 2021
if (location.href.startsWith("http://")) {
let nav = document.querySelector("#p-navigation ul");
let a = document.createElement("a")
a.href = "https://" + location.href.substring("http://".length);
a.innerText = "Upgrade to HTTPS";
nav.insertAfter(nav.children[0]);
}