Userscript and Node.js script for exporting GIFs from Discord as files.
- Userscript:
- Install a userscript manager browser extension like Violentmonkey or Tampermonkey.
- Click here to install the userscript.
- Node.js script:
- Install Node.js.
- Clone this repository with Git or download it here and extract the .zip file.
- Open Discord in your browser, log in, and navigate to any chat.
- Open the "Favorite" GIFs panel (also records any other GIF panel that is opened, until the tab is closed or refreshed).
- Semi-slowly scroll down until all GIFs were loaded to record them.
They don't have to fully load, just the rectangular frame needs to exist. - Click the userscript manager extension's icon somewhere in the browser toolbar.
- Select "Export to file" to download all GIF URLs as a
gifs.jsonfile. Don't rename this file. - Move the
gifs.jsonfile to the project directory where the Node.js script is, so it sits in the same folder aspackage.json - Open a terminal window in the Node.js script's directory and run the command
node . - The exported GIFs will be saved to a newly created
./output/folder.
Running the command again will not delete the existing./output/folder, but will overwrite any existing files in the same position and the same file name.
Copyright © 2026 Sv443, see license.
Powered by: