diff --git a/src/filehosts.ts b/src/filehosts.ts index 33b4d4b..310bc86 100644 --- a/src/filehosts.ts +++ b/src/filehosts.ts @@ -67,7 +67,8 @@ export type API = { export const filehosts: API[] = [ catbox('catbox.moe', 'files.catbox.moe'), - catbox('pomf.moe', 'a.pomf.cat'), - lolisafe('take-me-to.space'), - lolisafe('zz.ht', 'z.zz.fo'), + // all dead, now ;_;7 + //catbox('pomf.moe', 'a.pomf.cat'), + //lolisafe('take-me-to.space'), + //lolisafe('zz.ht', 'z.zz.fo'), ]; diff --git a/src/websites/index.ts b/src/websites/index.ts index bbcadac..e6a71f3 100644 --- a/src/websites/index.ts +++ b/src/websites/index.ts @@ -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);