From 1fb6a4c2797f16d0afe58d377393c81cf77a4303 Mon Sep 17 00:00:00 2001 From: MotorTruck1221 Date: Tue, 20 May 2025 17:21:43 -0600 Subject: [PATCH] Add about blank cloaking(ish) --- src/utils/settings.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/utils/settings.ts b/src/utils/settings.ts index e39b8b3..003e4f1 100644 --- a/src/utils/settings.ts +++ b/src/utils/settings.ts @@ -80,6 +80,16 @@ class Settings { this.#storageManager.setVal("searchEngine", engine || SearchEngines.DuckDuckGo); } + aboutBlank() { + window.location.replace("https://google.com"); + const win = window.open(); + const iframe = win!.document.createElement("iframe") as HTMLIFrameElement; + win!.document.body.setAttribute('style', 'margin: 0; height: 100vh; width: 100%;'); + iframe.setAttribute('style', 'border: none; width: 100%; height: 100%; margin: 0;'); + iframe.src = window.location.href; + win!.document.body.appendChild(iframe); + } + async *#init() { yield this.theme(this.#storageManager.getVal("theme") || "default"); }