Enable processing of all posts in thread

This commit is contained in:
coomdev 2021-12-22 21:09:05 +01:00
parent 9823da0ad6
commit 6cdb37362c
2 changed files with 5 additions and 6 deletions

4
.gitignore vendored Normal file
View File

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

View File

@ -301,13 +301,8 @@ let buildInjection = async (container: File, inj: File) => {
return { file: new Blob([ret]), name: container.name }; return { file: new Blob([ret]), name: container.name };
} }
let embedded;
const startup = async () => { const startup = async () => {
//await Promise.all( await Promise.all([...document.querySelectorAll('.postContainer')].map(e => processPost(e as any)));
let glow = [...document.querySelectorAll('.postContainer')].find(e => e.textContent?.includes("191 KB"));
await processPost(glow as any)
document.addEventListener('PostsInserted', <any>(async (e: CustomEvent<string>) => { document.addEventListener('PostsInserted', <any>(async (e: CustomEvent<string>) => {
processPost(e.target as any); processPost(e.target as any);