From fccd1d7cbb3cdcccb91a6212f0af17fcc2c1fb35 Mon Sep 17 00:00:00 2001 From: neobooru <50623835+neobooru@users.noreply.github.com> Date: Fri, 31 Jul 2026 02:01:22 +0200 Subject: [PATCH] Fix for New e621 Download Button and e6ai Domain Addition Co-authored-by: Kaias Blackwood --- README.md | 4 ++-- src/engines/e621.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8e4a22c..e4e1ce7 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ Scrape a booru-like post object from the DOM. ## Supported sites | Engine | Sites | Features | Notes | -|---|---|---|---|---| +|---|---|---|---| | animepictures | anime-pictures.net | content, resolution, tags, tag_category | Rating is assumed to be safe. | | bluesky | bsky.app | content | | | danbooru | danbooru.donmai.us, safebooru.donmai.us, sonohara.donmai.us, hijiribe.donmai.us | content, rating, resolution, tags, tag_category, source, notes | | -| e621 | e621.net, e926.net | content, rating, resolution, tags, tag_category, source | | +| e621 | e621.net, e926.net, e6ai.net | content, rating, resolution, tags, tag_category, source | | | E-hentai | e-hentai.org, exhentai.org | content, resolution, extra_content, cookies | Rating is assumed to be unsafe. | | furaffinity | furaffinity.net | content, rating, resolution, tags, tag_category | | | gelbooru | safebooru.org, gelbooru.com, rule34.xxx, tbib.org, xbooru.com, mspabooru.com, hypnohub.net | content, rating, resolution, tags, tag_category, source, notes | Supported features might vary between hosts. | diff --git a/src/engines/e621.ts b/src/engines/e621.ts index 72cfa23..bd2fe53 100644 --- a/src/engines/e621.ts +++ b/src/engines/e621.ts @@ -5,7 +5,7 @@ export default class e621 extends ScrapeEngineBase { name = "e621"; features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source"]; notes = []; - supportedHosts = ["e621.net", "e926.net"]; + supportedHosts = ["e621.net", "e926.net", "e6ai.net"]; scrapeDocument(document: Document): ScrapeResult { const result = new ScrapeResult(this.name); @@ -13,7 +13,7 @@ export default class e621 extends ScrapeEngineBase { post.pageUrl = document.location.href; // Set image url - const downloadEl = document.querySelector("#image-download-link > a") as HTMLAnchorElement; + const downloadEl = document.querySelector(".ptbr-fullscreen-button") as HTMLAnchorElement; post.contentUrl = downloadEl?.href; // Set content type