mirror of
https://git.coom.tech/fuckjannies/lolipiss.git
synced 2024-06-23 19:22:36 +00:00
Enable processing of all posts in thread
This commit is contained in:
parent
9823da0ad6
commit
6cdb37362c
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
dist
|
||||||
|
node_modules
|
||||||
|
*.png
|
||||||
|
*.html
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user