From 655895f14f9e66ba5c1327196d56ed8df565ecd0 Mon Sep 17 00:00:00 2001 From: Araragi Koyomi Date: Fri, 23 Dec 2022 23:19:24 +0100 Subject: [PATCH] Fix settings not appearing on KC index --- src/websites/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websites/index.ts b/src/websites/index.ts index 6679e0a..100bde8 100644 --- a/src/websites/index.ts +++ b/src/websites/index.ts @@ -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 || '';