diff --git a/src/AboutBlank.tsx b/src/AboutBlank.tsx
new file mode 100644
index 0000000..35e8461
--- /dev/null
+++ b/src/AboutBlank.tsx
@@ -0,0 +1,18 @@
+import { LoadSuspense } from "./LoadSuspense";
+
+export function AboutBlank(props: { url: string }) {
+ var newWindow = window.open("about:blank");
+ var iframe = document.createElement("iframe");
+ iframe.src = window.location.origin + props.url;
+ iframe.style.width = "100%";
+ iframe.style.height = "100%";
+ iframe.style.border = "none";
+ iframe.style.overflow = "hidden";
+ newWindow.document.body.appendChild(iframe);
+ window.location.replace("https://google.com");
+ return (
+
+
+
+ );
+}
diff --git a/src/components/iframe/IframeHeader.tsx b/src/components/iframe/IframeHeader.tsx
index 787b845..8940c16 100644
--- a/src/components/iframe/IframeHeader.tsx
+++ b/src/components/iframe/IframeHeader.tsx
@@ -2,7 +2,12 @@ import { useState } from "preact/hooks";
import { useTranslation } from "react-i18next";
import { Link } from "preact-router";
import { RiPictureInPictureExitFill, RiFullscreenFill } from "react-icons/ri";
-import { IoCodeSlashSharp,IoChevronBackSharp,IoChevronForwardSharp, IoReloadSharp } from "react-icons/io5";
+import {
+ IoCodeSlashSharp,
+ IoChevronBackSharp,
+ IoChevronForwardSharp,
+ IoReloadSharp
+} from "react-icons/io5";
import { FaXmark } from "react-icons/fa6";
interface ProxyFrame extends HTMLElement {
@@ -25,7 +30,7 @@ export function IframeHeader(props: { url: string }) {
return (
@@ -40,29 +45,35 @@ export function IframeHeader(props: { url: string }) {
-
- {
- const proxyFrame: ProxyFrame | null = document.getElementById("iframe") as ProxyFrame;
- proxyFrame.contentWindow.history.back();
- }}
- />
- {
- const proxyFrame: ProxyFrame | null = document.getElementById("iframe") as ProxyFrame;
- proxyFrame.contentWindow.location.reload();
- }}
- />
-
+ {
- const proxyFrame: ProxyFrame | null = document.getElementById("iframe") as ProxyFrame;
+ const proxyFrame: ProxyFrame | null = document.getElementById(
+ "iframe"
+ ) as ProxyFrame;
+ proxyFrame.contentWindow.history.back();
+ }}
+ />
+ {
+ const proxyFrame: ProxyFrame | null = document.getElementById(
+ "iframe"
+ ) as ProxyFrame;
+ proxyFrame.contentWindow.location.reload();
+ }}
+ />
+ {
+ const proxyFrame: ProxyFrame | null = document.getElementById(
+ "iframe"
+ ) as ProxyFrame;
proxyFrame.contentWindow.history.forward();
}}
- />
-
+ />
+
-
-
-
-
-
-
-
-
- `);
- newDocument.close();
- window.location.replace("/");
+ if (!(ProxiedUrl == undefined)) {
+ window.location.href = "/ab/" + encodeURIComponent(ProxiedUrl);
+ }
}
if (!ProxiedUrl == undefined) {
window.location.href = ProxiedUrl;
}
-
+
return (
+