Fix for New e621 Download Button and e6ai Domain Addition

Co-authored-by: Kaias Blackwood <kaias.blackwood@gmail.com>
master
neobooru 2026-07-31 02:01:22 +02:00
parent eda941d889
commit fccd1d7cbb
2 changed files with 4 additions and 4 deletions

View File

@ -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. |

View File

@ -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