From 163ad6d2b3dae1547b2a3c1ede2cf5dd8aed47a7 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sat, 13 Jun 2026 12:30:25 +0100 Subject: [PATCH] Updates --- src/components/pages/Home/index.tsx | 14 ++++++++------ src/scripts/substack/save-all-notes.ts | 8 ++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/pages/Home/index.tsx b/src/components/pages/Home/index.tsx index 3479ce1..ca8917a 100644 --- a/src/components/pages/Home/index.tsx +++ b/src/components/pages/Home/index.tsx @@ -5,7 +5,7 @@ import Row from "@/src/components/lib/layout/Row"; import Section from "@/src/components/lib/layout/Section"; import Span from "@/src/components/lib/layout/Span"; import Stack from "@/src/components/lib/layout/Stack"; -import { Contact, Terminal } from "lucide-react"; +import { Contact, ScrollText, Terminal } from "lucide-react"; export default function Main() { return ( @@ -55,7 +55,7 @@ export default function Main() { > View My Work - - {/* */} + diff --git a/src/scripts/substack/save-all-notes.ts b/src/scripts/substack/save-all-notes.ts index 7d9d4b6..f30c4ec 100644 --- a/src/scripts/substack/save-all-notes.ts +++ b/src/scripts/substack/save-all-notes.ts @@ -28,7 +28,7 @@ async function scrollToEnd() { behavior: "smooth", }); - await sleep(5000); + await sleep(20000); const current_content_height = grabContentHeight(); @@ -64,7 +64,7 @@ async function main() { console.log(`Searching for Article #${i} ...`); - await sleep(5000); + await sleep(20000); present_articles = Array.from( document.querySelectorAll("div[role='article']"), @@ -120,7 +120,7 @@ async function main() { .find((el) => el.textContent.includes("See more")) ?.click(); - await sleep(2000); + await sleep(10000); let new_window_url = window.location.href; @@ -148,7 +148,7 @@ async function main() { articles_objects.push(article_object); window.history.back(); - await sleep(2000); + await sleep(10000); } }