Skip to content

Instantly share code, notes, and snippets.

@bclswl0827
Created March 24, 2023 08:20
Show Gist options
  • Save bclswl0827/e8cdcc97021f1c6d6d514aa5c1551645 to your computer and use it in GitHub Desktop.
Save bclswl0827/e8cdcc97021f1c6d6d514aa5c1551645 to your computer and use it in GitHub Desktop.
Force HTTP with sdrotg.com
const protocol = window.location.protocol;
const hostname = window.location.hostname;
if (protocol === "https:" && hostname.includes("sdrotg.com")) {
location.replace(`http:${location.href.substring(location.protocol.length)}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment