This Tampermonkey script allows you to batch download your personal DALL-E 2 generated images from the OpenAI labs website. It includes features for resuming downloads, setting manual start points, and displaying image indices.
- Batch download DALL-E 2 images from your personal gallery
- Resume functionality to continue downloads from where you left off
- Manual index setting to start downloads from a specific image
- Display of image indices in the gallery for easy reference
- Configurable delay between downloads to avoid overwhelming the server
- Install the Tampermonkey browser extension for your browser.
- Create a new script in Tampermonkey and paste the contents of
dalle-image-downloader.user.js
into it. - Save the script and ensure it's enabled in Tampermonkey.
- Navigate to your DALL-E 2 gallery page on the OpenAI labs website. Make sure to load all images on the page by scrolling all the way to the bottom.
- You'll see new buttons and an input field in the top-right corner of the page:
- Start Download: Begins downloading from the start of your gallery
- Stop Download: Pauses the download process
- Resume Download: Continues downloading from where you left off (or where you manually set the index at)
- Reset Progress: Clears saved progress
- Set Index (with input field): Allows you to set a specific starting point
- Each image in the gallery will now display its index number in the bottom-left corner.
- Use the buttons to control the download process as needed.
To ensure smooth operation and avoid constant download prompts, you need to configure your browser settings. This is crucial for the script to work efficiently.
- Go to Settings > Advanced > Downloads
- Toggle off "Ask where to save each file before downloading"
- Set your preferred download location
- Go to Options > General > Downloads
- Check "Save files to" and choose your preferred download location
- Uncheck "Always ask you where to save files"
- Go to Settings > Downloads
- Toggle OFF "Ask me what to do with each download"
- Set your preferred download location under "Save As" location
Note: Ensuring these settings are correctly configured is vital for the script to function without requiring manual intervention for each download.
You can modify the following variables in the script to customize its behavior:
sleep(1000)
: Adjust the number to change the delay between downloads (in milliseconds)
- If downloads aren't starting, check your browser's download settings as described above.
- Ensure you're logged into your OpenAI account and on the correct gallery page.
- If images aren't displaying indices, try refreshing the page.
This script is for personal use only. Ensure you comply with OpenAI's terms of service when using this script. The authors are not responsible for any misuse or violation of terms.
This project is licensed under the MIT License - see the LICENSE.md file for details.
The whole script and all text on this readme are written by Claude 3.5 Sonnet