Browse Source

Enable processing of all posts in thread

pull/4/head
coomdev 2 years ago
parent
commit
6cdb37362c
  1. 4
      .gitignore
  2. 7
      src/main.ts

4
.gitignore

@ -0,0 +1,4 @@
dist
node_modules
*.png
*.html

7
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', <any>(async (e: CustomEvent<string>) => {
processPost(e.target as any);

Loading…
Cancel
Save