A cheap lazy userscript that adds a convenient button to Civitai model pages, allowing you to copy a wget command for loras, in lightingAI workspaces, see folder path
- Adds a "📋 Copy wget Command" button next to download links on Civitai model pages.
- Prompts for your Civitai API key on first use, saving it side the voilentmonkey local storage.
- Automatically generates a
wgetcommand including your API key and copies the link to clipboard.
- A valid Civitai API key.
- Install a userscript manager for your browser:
- Create a new script in your userscript manager and paste the content of this script.
- Save and enable the script.
- Navigate to any Civitai model page (e.g.,
https://civitai.com/models/<model_id>). - If running the script for the first time, you will be prompted to enter your Civitai API key. The key will be securely saved.
- Click the "📋 Copy wget Command" button next to the download link.
- Paste the copied
wgetcommand into your terminal to download the model.
The script uses the following default configuration:
- API Key Storage Key:
civitai_api_key - Default Download Path:
/teamspace/studios/this_studio/ComfyUI/models/loras
You can customize these values in the script's Config class.
This script requires the following permissions:
GM_setClipboard: To copy thewgetcommand to the clipboard.GM_getValueandGM_setValue: To securely save and retrieve the API key.
MIT License