|
|
@ -24,7 +24,7 @@ export const V4chan: QueryProcessor = { |
|
|
|
settingsHost: () => document.getElementById("navtopright") as any, |
|
|
|
catalogControlHost: () => document.getElementById("settings") as HTMLDivElement, |
|
|
|
getImageLink: async function*(post: HTMLElement) { |
|
|
|
yield post.querySelector('a[target="_blank"]')?.getAttribute('href') || ''; |
|
|
|
yield (post.querySelector('a[target="_blank"]')?.getAttribute('href') + '?0') || ''; |
|
|
|
}, |
|
|
|
|
|
|
|
//(post: HTMLElement) => post.querySelector('a[target="_blank"]')?.getAttribute('href') || '',
|
|
|
@ -50,7 +50,7 @@ export const X4chan: QueryProcessor = { |
|
|
|
settingsHost: () => document.getElementById("shortcuts") as any, |
|
|
|
catalogControlHost: () => document.getElementById("index-options") as HTMLDivElement, |
|
|
|
getImageLink: async function*(post: HTMLElement) { |
|
|
|
yield post.querySelector('a[target="_blank"]')?.getAttribute('href') || ''; |
|
|
|
yield (post.querySelector('a[target="_blank"]')?.getAttribute('href') + '?0') || ''; |
|
|
|
}, |
|
|
|
getFilename: (post: HTMLElement) => { |
|
|
|
const a = post.querySelector('a[target="_blank"]') as (HTMLAnchorElement | null); |
|
|
|