From a1b1dfd99af71ef01e257fbd6b3af5c308dbe65d Mon Sep 17 00:00:00 2001 From: incognitotgt Date: Sun, 31 Dec 2023 21:45:45 -0500 Subject: [PATCH 1/7] No more annoying borders. --- src/AboutBlank.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/AboutBlank.tsx b/src/AboutBlank.tsx index 35e8461..d5c37ac 100644 --- a/src/AboutBlank.tsx +++ b/src/AboutBlank.tsx @@ -7,7 +7,13 @@ export function AboutBlank(props: { url: string }) { iframe.style.width = "100%"; iframe.style.height = "100%"; iframe.style.border = "none"; - iframe.style.overflow = "hidden"; + iframe.style.margin = "0"; + iframe.style.padding = "0"; + iframe.style.position = "fixed"; + iframe.style.top = "0"; + iframe.style.bottom = "0"; + iframe.style.left = "0"; + iframe.style.right = "0"; newWindow.document.body.appendChild(iframe); window.location.replace("https://google.com"); return ( From 3f3afd93075ba702011b9aa30962af44fbcd57a0 Mon Sep 17 00:00:00 2001 From: incognitotgt Date: Sun, 31 Dec 2023 21:50:05 -0500 Subject: [PATCH 2/7] No more annoying borders. --- src/AboutBlank.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AboutBlank.tsx b/src/AboutBlank.tsx index d5c37ac..d01c5b2 100644 --- a/src/AboutBlank.tsx +++ b/src/AboutBlank.tsx @@ -7,6 +7,7 @@ export function AboutBlank(props: { url: string }) { iframe.style.width = "100%"; iframe.style.height = "100%"; iframe.style.border = "none"; + iframe.style.overflow = "hidden"; iframe.style.margin = "0"; iframe.style.padding = "0"; iframe.style.position = "fixed"; From dbe076e80113e38fa6e3141de50bc6d7824b5b99 Mon Sep 17 00:00:00 2001 From: incognitotgt Date: Sun, 31 Dec 2023 23:36:21 -0500 Subject: [PATCH 3/7] about:blank for entire nebula --- src/locales/en.json | 3 ++- src/locales/es.json | 3 ++- src/locales/ja.json | 3 ++- src/pages/Settings/TabSettings.tsx | 39 ++++++++++++++++++++++++++++-- 4 files changed, 43 insertions(+), 5 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index a47c5eb..06b3d5f 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -46,7 +46,8 @@ }, "cloaking": { "title": "Cloaking", - "subtitle": "Choose how your tab looks" + "subtitle": "Choose how your tab looks", + "aboutblank": "open in about:blank" }, "search": { "title": "Search Engine", diff --git a/src/locales/es.json b/src/locales/es.json index 220347a..83a8aea 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -46,7 +46,8 @@ }, "cloaking": { "title": "Encubrimiento", - "subtitle": "Elige cómo se ve tu pestaña" + "subtitle": "Elige cómo se ve tu pestaña", + "aboutblank": "Abierte en about:blank" }, "search": { "title": "Buscador", diff --git a/src/locales/ja.json b/src/locales/ja.json index 5c14590..c6def28 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -46,7 +46,8 @@ }, "cloaking": { "title": "クローキング", - "subtitle": "タブの見た目を選択する" + "subtitle": "タブの見た目を選択する", + "aboutblank": "で開く about:blank" }, "search": { "title": "検索エンジン", diff --git a/src/pages/Settings/TabSettings.tsx b/src/pages/Settings/TabSettings.tsx index 31355e5..35d55ad 100644 --- a/src/pages/Settings/TabSettings.tsx +++ b/src/pages/Settings/TabSettings.tsx @@ -2,6 +2,7 @@ import { motion } from "framer-motion"; import { tabContentVariant, settingsPageVariant } from "./Variants"; import CloakPreset from "./CloakPreset"; import { useTranslation } from "react-i18next"; +import { LoadSuspense } from "../../LoadSuspense"; const TabSettings = ({ id, active }) => { const { t } = useTranslation(); @@ -19,8 +20,12 @@ const TabSettings = ({ id, active }) => { variants={settingsPageVariant} className="content-card flex w-full flex-col items-center justify-center text-center" > -
{t("settings.cloaking.title")}
-
{t("settings.cloaking.subtitle")}
+
+ {t("settings.cloaking.title")} +
+
+ {t("settings.cloaking.subtitle")} +
{ title="Schoology" />
+
+ +
); From 5088a33f148e5a27d7f7ad6d3872bf440b2038cc Mon Sep 17 00:00:00 2001 From: incognitotgt Date: Sun, 31 Dec 2023 23:38:19 -0500 Subject: [PATCH 4/7] grammer --- src/locales/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/en.json b/src/locales/en.json index 06b3d5f..86a9228 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -47,7 +47,7 @@ "cloaking": { "title": "Cloaking", "subtitle": "Choose how your tab looks", - "aboutblank": "open in about:blank" + "aboutblank": "Open in about:blank" }, "search": { "title": "Search Engine", From 69a478006a56b265ef2a22dce498ec22c45e4fd3 Mon Sep 17 00:00:00 2001 From: incognitotgt Date: Mon, 1 Jan 2024 10:43:02 -0500 Subject: [PATCH 5/7] Fixed Japanese being borked in mobile --- src/components/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 60558da..8cc4b30 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -91,7 +91,7 @@ export function Header() { >
setIsActive(false)} >
From 326e196bc31ac605aec5669156e70c625a1a835d Mon Sep 17 00:00:00 2001 From: incognitotgt Date: Mon, 1 Jan 2024 11:24:17 -0500 Subject: [PATCH 6/7] Hides logo text on mobile, removed nonexistent css class --- src/components/Header.tsx | 2 +- src/components/iframe/IframeHeader.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 8cc4b30..c71b514 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -28,7 +28,7 @@ export function Header() { className="h-full w-full transition-all duration-1000 hover:rotate-[360deg]" />
-

+

{t("header.title")}

diff --git a/src/components/iframe/IframeHeader.tsx b/src/components/iframe/IframeHeader.tsx index 453d56d..729c51d 100644 --- a/src/components/iframe/IframeHeader.tsx +++ b/src/components/iframe/IframeHeader.tsx @@ -39,7 +39,7 @@ export function IframeHeader(props: { url: string }) { className="h-16 w-16 transition-all duration-1000 hover:rotate-[360deg]" alt="Nebula Logo" > -

+

{" "} {t("header.title")}{" "}

@@ -98,10 +98,10 @@ export function IframeHeader(props: { url: string }) { script.onload = function () { if (!proxyWindow) return; proxyWindow.eruda.init({ - defaults: { - displaySize: 45, - theme: 'Material Palenight' - } + defaults: { + displaySize: 45, + theme: "Material Palenight" + } }); proxyWindow.eruda.show(); }; From bf85598b21ef3e62c07dc749a22f6497da5946f4 Mon Sep 17 00:00:00 2001 From: incognitotgt Date: Mon, 1 Jan 2024 11:32:22 -0500 Subject: [PATCH 7/7] whitespace? --- src/components/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index c71b514..fcad4b9 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -91,7 +91,7 @@ export function Header() { >
setIsActive(false)} >