From 6cdb37362c22669453a72ac40165cc54f97cbb7f Mon Sep 17 00:00:00 2001 From: coomdev Date: Wed, 22 Dec 2021 21:09:05 +0100 Subject: [PATCH] Enable processing of all posts in thread --- .gitignore | 4 ++++ src/main.ts | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81e448f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +dist +node_modules +*.png +*.html diff --git a/src/main.ts b/src/main.ts index f9677fe..3633a8e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -301,13 +301,8 @@ let buildInjection = async (container: File, inj: File) => { return { file: new Blob([ret]), name: container.name }; } -let embedded; - const startup = async () => { - //await Promise.all( - - let glow = [...document.querySelectorAll('.postContainer')].find(e => e.textContent?.includes("191 KB")); - await processPost(glow as any) + await Promise.all([...document.querySelectorAll('.postContainer')].map(e => processPost(e as any))); document.addEventListener('PostsInserted', (async (e: CustomEvent) => { processPost(e.target as any);