Skip to content

GitFolderDownloader/GitFolderDownloader-Download-Button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Git Folder Downloader Download Button

Git Folder Downloader Download Button is a lightweight browser extension that enhances GitHub’s UI by adding a smart “Download” button directly inside GitHub repository, folder, and file menus.

It integrates seamlessly with the Git Folder Downloader API to allow downloading repositories, folders, or files with custom names, while matching GitHub’s native design and theme.


✨ Features

🎯 Context-aware download button

The button automatically adapts based on where you are on GitHub:

Location Button Label
Repository Code Button Menu Download Repo
Folder More Option Menu Download Folder
File More Option Menu Download

🧠 Smart name detection

  • Auto-detects:

    • Repository name → owner-repo
    • Folder name → folder-name
    • File name → file.ext
  • Pre-fills the name in popup

  • Fully editable by user


🪟 Custom popup

  • GitHub-styled modal
  • Cancel / Download actions
  • ESC key support
  • Click-safe (no accidental downloads)

🎨 Auto GitHub theme detection

  • Matches Light and Dark GitHub themes
  • Uses GitHub CSS variables for native look
  • Updates automatically when theme changes

⚡ Technical highlights

  • 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

🔗 How it works

When clicked, the extension opens:

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

🧩 Installation (Chrome)

  1. download

  2. Open Chrome and go to:

    chrome://extensions
    
  3. Enable Developer mode

  4. Click Load unpacked

  5. Select the project folder

🧩 Installation (FireFox)

  1. Install

🛡 Permissions Used

  • Only https://github.com/* → Required to inject the download button into GitHub UI

No tracking, no analytics, no data collection.

🤝 Contributing

Pull requests and ideas are welcome. If GitHub UI changes, updates may be required to selectors.


📜 License

GPL 3 License – free to use, modify, and distribute.


⭐ Credits

About

Adds a Git Folder Downloader Api Download button to GitHub repo and directory menus.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors