Add about blank cloaking(ish)

This commit is contained in:
MotorTruck1221 2025-05-20 17:21:43 -06:00
parent a93846f68a
commit 1fb6a4c279
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -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");
}