A GitHub UI enhancement UserScript that adds context-aware download buttons to GitHub repositories, folders, and files using the Git Folder Downloader API.
Works with:
- ScriptRunner
- Tampermonkey
- Violentmonkey
- And many others
| Location | Button Label |
|---|---|
| Repository Code Button Menu | Download Repo |
| Folder More Option Menu | Download Folder |
| File More Option Menu | Download |
-
Auto-detects:
- Repository name →
owner-repo - Folder name →
folder-name - File name →
file.ext
- Repository name →
-
Pre-fills the name in popup
-
Fully editable by user
- GitHub-styled modal
- Cancel / Download actions
- ESC key support
- Click-safe (no accidental downloads)
- Matches Light and Dark GitHub themes
- Uses GitHub CSS variables for native look
- Updates automatically when theme changes
- Fully client-side
- No external libraries
- SPA-safe (GitHub Turbo / PJAX supported)
- No duplicate buttons
- Injects button at top of menus
- Zero interference with GitHub functionality
https://GitFolderDownloader.github.io/api/?url=<GITHUB_URL>&name=<CUSTOM_NAME>
Example:
https://GitFolderDownloader.github.io/api/?url=https://github.com/user/repo/tree/main/src&name=src
- Create a new script
- Paste the UserScript code
- Enable the script
- Visit GitHub
- Create a new UserScript
- Paste the code
- Save
- Open GitHub
-
Runs only on:
https://github.com/* -
No tracking
-
No analytics
-
No data collection
Pull requests and ideas are welcome. If GitHub UI changes, updates may be required to selectors.
GPL 3 License – free to use, modify, and distribute.