Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sites

Moekura knows the sites Danbooru supports (listed below): wherever a link to one appears (a post’s source, an artist’s URLs), it shows the site’s icon and name, and it can tell a work’s page from an artist’s profile and a file.

Uploading from a link to a work on one of these sites reads the work for its files (the originals, not the samples a page shows), the artist and their profiles, the site’s tags and the artist’s commentary. A link to one of the work’s files, even a thumbnail, downloads the file at its best and makes the work’s page the post’s source. Short links (t.co, b23.tv, pin.it and the like) are followed to the page they lead to.

When a site has changed, refuses the server or wants a login it doesn’t have, Moekura falls back to the page’s preview (OpenGraph) image, read without a login, when that image is a file on a site it knows, and otherwise downloads the link as it is.

Google’s and Kakao’s image servers (behind YouTube, Blogger, Tistory and others), Skland and TikTok are only recognised: their files are downloaded at full size, and their pages’ preview images are read.

Lookups

What a link gives is kept for ten minutes, so the upload form, the artist finder and the related tags panel asking about the same link again don’t ask the site again. Fetch source data on the post form reads the site again only for users whose uploads skip the approval queue; others see what was found.

Every lookup that asks another server counts against an allowance, per account (or, for visitors, per address): about ten at once, then one more every six seconds. Past it, the artist finder answers Too many requests, and the related tags and the post form’s source panel go without what the site says for a moment. The server reads at most 16 links at a time, and gives up on one after 20 seconds. Of what a page says, only so much is kept: up to 200 files and tags, and a title and description as long as an artist’s commentary can be.

Artist URLs

An artist entry’s URLs on these sites are kept in their canonical form (artstation.com/artist/someone becomes https://www.artstation.com/someone), and finding an artist by URL also tries the profile a work’s page belongs to, so https://someone.deviantart.com/art/a-cat-123 finds the artist with https://www.deviantart.com/someone.

Logins

Some sites only show some works (or anything at all) to members. Give Moekura an account’s cookies, API key or token in the configuration, by domain; requests to that domain and its subdomains carry them, over https only. Only the requests Moekura makes to read a work carry them: the work’s own page (the one a link to it gives back, not one a crafted id or query value leads to) and the site’s API, once it has checked the ids it puts in it. A page read for its preview image goes without. A request carrying a login follows redirects only to the sites the same login is for, and a link whose path hides separators or .. (such as %2F or %5C) isn’t read at all, so a crafted link can’t send the login elsewhere or to another page of the site:

[sources.logins."pixiv.net"]
cookie = "PHPSESSID=…"

[sources.logins."gelbooru.com"]
query = { user_id = "…", api_key = "…" }

[sources.logins."baraag.net"]
headers = { Authorization = "Bearer …" }

Use an account made for this: anyone with access to the configuration can act as it.

X

X shows age-restricted posts only to logged-in accounts, and little at all to servers. Moekura reads posts on X:

  1. through the API of an FxEmbed instance, which needs no account here and sees age-restricted posts too. It’s https://api.fxtwitter.com unless [sources.x] names another (such as https://api.fxtwitter.com, or your own):

    [sources.x]
    fxembed_api_url = "https://api.fxtwitter.com"
    

    Set it to "" to not use one;

  2. then, if that fails and there’s a login for x.com, from X itself as that account. It needs the auth_token and ct0 cookies, and the account must be allowed to see sensitive media (in X’s settings):

    [sources.logins."x.com"]
    cookie = "auth_token=…; ct0=…"
    

    X changes how its API is asked from time to time, which can break this, and suspends accounts it finds reading it automatically. So the login is only used for members who can upload (not for visitors using the artist finder or the related tags), not when FxEmbed said there’s no such post, and for at most 30 links every 15 minutes on each web server;

  3. last, through the API X’s own embedded posts use, which only sees public posts that aren’t age-restricted.

When none of them gives the post, the upload is refused, saying it may not exist, may be hidden or may be age-restricted; the server’s log says what each answered.

Every site

Boorus

SiteNotes
Danbooruthe post’s own source fills in the artist and commentary, as on every booru
e621
Gelbooruits API wants a login: query = { user_id = "…", api_key = "…" } (without one, the page’s preview image)
Konachan
Rule34.us
Rule34.xxxits API wants a login: query = { user_id = "…", api_key = "…" }
Safebooru
TBIB
Yande.re
Zerochanthe z_id and z_hash cookies help

Pixiv’s sites

SiteNotes
Pixivsome works only show to members: the PHPSESSID cookie
Pixiv Comic
Pixiv Factory
Pixiv Sketch
pixivFANBOXposts for supporters have no files for visitors
Booth

Misskey, Mastodon and Bluesky

SiteNotes
Misskeyany Misskey instance, for its /notes/<id> links
Misskey.io
Misskey.art
Misskey.design
Pawoosome statuses need an access token: headers = { Authorization = "Bearer …" }
Baraagsome statuses need an access token: headers = { Authorization = "Bearer …" }
Bluesky

Other sites

SiteNotes
4chan
Adobe Portfolio
Apple Music
Arca.live
Artistree
ArtStation
ArtStreetmature works need the MSID cookie
Behanceoften refuses servers; the iat0 cookie helps
Bilibili
Blogger
Carrd
Ci-Enarticles for supporters need the ci_en_session cookie
DC Inside
DeviantArt
Dotpict
Fandom
Fantianeeds the _session_id cookie
FC2
Foriio
Furaffinitymature works need the a and b cookies
Galleria
Grafolio
Gumroad
Hentai Foundry
Huajia
Huashijieneeds your userId and token: query = { userId = "…", token = "…" } for app.huashijie.art
Imgur
Inkbunnymembers-only works need a session id: query = { sid = "…" }
Itaku
Ko-fi
Lofter
Mihuashi
Minitokyo
Miyoushe
Naver Blog
Naver Cafe
Newgroundsmature works need the ng_remember cookie
Nico Seiganeeds the user_session cookie
Nijieneeds the NIJIEIJIEID and nijie_tok cookies
Note
Odaibako
OpenSea
Patreonposts for patrons need the session_id cookie
Piapro.jpthe illustration as shown; downloads need the piapro_s cookie
Pinterest
Plurk
Poipikumost posts need the POIPIKU_LK cookie
Postypepaid and adult posts need the PSE3 cookie
Privatter
Redditoften refuses servers; the reddit_session cookie helps
Redgifs
Skeb
Tinamioriginals need the Tinami2SESSID cookie
Tistory
Toyhouse
Tumblran API key reads more: query = { api_key = "…" } for api.tumblr.com
Vk
Weiboread as a visitor
Xread through an FxEmbed instance; see X
Xfolioneeds the xfolio_session cookie
Xiaohongshuneeds the webId, web_session and gid cookies
Yachiyo’s Room
Youtube