From bc300601e09662ad287010fa73fbd61d0e55f4cf Mon Sep 17 00:00:00 2001 From: Shae Date: Sat, 11 Oct 2025 03:56:08 +0200 Subject: [PATCH] fix(furaffinity): detected non-tag elements as tags when logged in when logged in there are "block tag" elements, which are empty, but still get recognized as tags. example element, which was previously detected: ``` ``` (the text gets filled via `::after`, so it is empty) --- src/engines/FurAffinity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engines/FurAffinity.ts b/src/engines/FurAffinity.ts index 6151fd0..6d2a090 100644 --- a/src/engines/FurAffinity.ts +++ b/src/engines/FurAffinity.ts @@ -47,7 +47,7 @@ export default class FurAffinity extends ScrapeEngineBase { } // Set tags - post.tags = Array.from(document.querySelectorAll("section.tags-row > span.tags a")) + post.tags = Array.from(document.querySelectorAll("section.tags-row > span.tags a:not(.tag-block)")) .map((x) => (x as HTMLSpanElement).innerText) .map((x) => new ScrapedTag(x));