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 February 19, 2025 20:15
/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.

Prerequisites

You will need both a userscript extension and 4chanX.