|
|
@ -101,7 +101,7 @@ export const KChan: QueryProcessor = { |
|
|
|
getFileThumbnail: post => post.querySelector('figure.uploadCell')!, |
|
|
|
getPost: (post) => post.querySelector('.innerPost')!, |
|
|
|
postsWithFiles: (h) => ([...(h || document).querySelectorAll('.postCell')] as HTMLElement[]).filter(p => p.querySelector('figure')), |
|
|
|
settingsHost: () => document.getElementById("navOptionsSpanThread") as any, |
|
|
|
settingsHost: () => document.getElementById("navOptionsSpanThread") || document.getElementById("navOptionsSpan") || document.getElementById("navOptionsSpanCatalog") as any, |
|
|
|
catalogControlHost: () => document.getElementById("divTools") as HTMLDivElement, |
|
|
|
getImageLink: async function*(post: HTMLElement) { |
|
|
|
yield (post.querySelector('a.imgLink[target="_blank"]') as HTMLAnchorElement)?.href || ''; |
|
|
|