Skip to content

956MB/reddit-download-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Download Buttons

Greasy Fork Version Greasy Fork Total Greasy Fork Daily MIT License

The browser extension that I've always wanted for Reddit... download buttons for easily saving images within posts. It's exactly what a data hoarder needs! Does not require Reddit login.

Reddit Download Buttons Post

Features

  • Adds buttons to Reddit posts and inside galleries for easy one-click downloads
  • Separate ZIP download button for downloading all images in a folder
  • Supports downloading single images, entire image galleries, and GIFs
  • Works on both the Reddit feed and individual post pages
  • Detects the highest resolution version of images for download

Warning

Currently the extension doesn't work on inline videos due to some m3u8 thing I couldn't get to work. Please feel free to help with an issue or pull request.

Supported Browsers:

Chromium-based
Browser Last Tested Version (Chromium Engine)
Arc 1.70.0 (131.0.6778.86)
Brave 1.67.123 (126.0.6478.126)
Chrome 126.0.6478.127 (126.0.0.0)
Chromium 128.0.6580.0 (128.0.0.0)
Opera 111.0.5168.61 (125.0.6422.143)
Vivaldi 6.8.3381.46 (126.0.0.0)
Other
Browser Requires
Firefox 127.0.2
Safari Doesn't work natively with Safari, but the Tampermonkey® extension (Safari v6-11) or the paid Mac App Store version (Safari v12+) could work. I have not tested either, though.

Installation

Not added to the Chrome Web store or Firefox Add-ons yet, but may be in the future.

Browser Extension (manual):
  1. Clone this repository or download the ZIP file and extract it
  2. Open your Chromium-based browser and navigate to the extensions page (e.g., chrome://extensions)
  3. Enable "Developer mode" in the top right corner
  4. Click "Load unpacked" and select the directory containing the extension files
  5. The extension should now be installed and active
Userscript (Greasyfork/Tampermonkey):
  1. Install Tampermonkey for your browser
  2. Click on this link to open the script in Tampermonkey: Reddit Download Buttons Script
  3. Click on the "Install" or "Update" button
  4. The script should now be active on Reddit

TODO

  • Figure out downloading m3u8 videos
  • ZIP download option for multiple images
  • Add UI for extension settings
  • Include metadata in ZIP file for the downloaded images/post (title, author, comments, etc.)
  • Support downloading multiple inline images/videos from text posts
  • Add download buttons to single images in comment sections and ones opened in new tabs.

Known Issues

  • For some reason the gallery-carousel on Reddit is keeping all the images as visible ("visibility: visible") when clicking forward/back. This is causing all images up to the index you've clicked to be downloaded. Only other method I can see right now of knowing the index is the translate3d value of the gallery-carousel. It's going up/down based on the window width.
  • The preview download button doesn't work I believe because of the CORS policy.

Changelog

1.3.3 - 2024-12-12

Fixed
  • Fixed issue where single image downloads from inside gallery carousel would not work and user would get "Error: Could not find post content" or "No media found to download" alert. Caveat: Reddit seems to have a bug with the gallery carousel where it's keeping all the images as visible ("visibility: visible") when clicking forward/back. This is causing all images up to the index you've cliked to be downloaded.

For a full list of changes and past versions, please see the CHANGELOG.md

License

MIT LICENSE