Fix discord, make embeded default proxy mode

This commit is contained in:
rift 2023-12-26 22:16:58 -06:00
parent c771252e78
commit 3821c227da
4 changed files with 8 additions and 6 deletions

View file

@ -16,7 +16,7 @@ declare global {
export function ProxyFrame(props: { url: string }) { export function ProxyFrame(props: { url: string }) {
// pass the URL encoded with encodeURIcomponent // pass the URL encoded with encodeURIcomponent
const localProxy = localStorage.getItem("proxy") || "automatic"; const localProxy = localStorage.getItem("proxy") || "automatic";
const proxyMode = localStorage.getItem("proxyMode") || "direct"; const proxyMode = localStorage.getItem("proxyMode") || "embed";
const [ProxiedUrl, setProxiedUrl] = useState<string | undefined>(undefined); const [ProxiedUrl, setProxiedUrl] = useState<string | undefined>(undefined);

View file

@ -14,8 +14,8 @@ const Proxy = ({ id, active }) => {
]; ];
const proxyModes = [ const proxyModes = [
{ id: "direct", label: t("settings.proxymodes.direct") },
{ id: "embed", label: t("settings.proxymodes.embed") }, { id: "embed", label: t("settings.proxymodes.embed") },
{ id: "direct", label: t("settings.proxymodes.direct") },
{ id: "aboutblank", label: t("settings.proxymodes.aboutblank") } { id: "aboutblank", label: t("settings.proxymodes.aboutblank") }
]; ];

View file

@ -18,7 +18,7 @@ export function DiscordPage() {
</button> </button>
</a> </a>
<a <a
href="${window.location.href = '/go/' + encodeURIComponent(https://discord.gg/unblocker)}" href="/~/uv/https%3A%2F%2Fdiscord.com%2Finvite%2Funblocker"
class="p-6" class="p-6"
> >
<button class="font-roboto h-14 w-56 rounded-2xl border border-input-border-color bg-input p-2 text-center text-xl placeholder:text-input-text focus:outline-none"> <button class="font-roboto h-14 w-56 rounded-2xl border border-input-border-color bg-input p-2 text-center text-xl placeholder:text-input-text focus:outline-none">

View file

@ -1,6 +1,8 @@
{ {
"youtube.com": "dynamic", "discord.gg": "ultraviolet",
"youtu.be": "dynamic", "discord.com": "ultraviolet",
"example.org": "rammerhead", "example.org": "rammerhead",
"example.com": "ultraviolet" "example.com": "ultraviolet",
"youtube.com": "dynamic",
"youtu.be": "dynamic"
} }