Skip to content

Instantly share code, notes, and snippets.

import argparse
from pathlib import Path
from glob import glob
from contextlib import redirect_stdout
from io import StringIO
from tqdm import tqdm
import modules.hashes
parser = argparse.ArgumentParser()
parser.add_argument('-p', '--path', type=str, required=True)
@catboxanon
catboxanon / README.md
Last active June 22, 2025 09:52
/hdg/ catbox.moe userscript

/hdg/ catbox.moe userscript

This userscript adds functionality to upload to Catbox directly from 4chan, and to view metadata for Stable Diffusion, TavernAI, and NovelAI, in PNGs, JPEGs, WebPs, and AVIFs.

For text-only posts, this also attaches the first Catbox link found, if any, to the post as a normal image.

Note

If you are only looking for reading metadata, without a userscript, use this webpage. It's not maintained by me but uses portions of my code. https://sprites.neocities.org/metadata/viewer