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);