@@ -11,27 +11,15 @@ A powerful, pixel-perfect, single-page web application to download files or fold
1111- ** Beautiful UI** : Smooth animations, file previews, and 2.Ogress bars.
1212- ** Theming** : 8 Themes including Dracula, Cyberpunk, AMOLED, and more.
1313
14- ## 🛠️ Installation / Deployment
14+ ## 🔗 How to Use Samrt Links
1515
16- Since this requires no build step, deployment is instant.
16+ To share a direct download link with a friend, simply add the GitHub URL after the hash ( ` ?= ` ):
1717
18- ### Option 1: GitHub Pages (Recommended)
19- 1 . Fork this repository (or create a new one).
20- 2 . Upload ` index.html ` , ` style.css ` , ` script.js ` , and ` wiki.html ` .
21- 3 . Go to ** Settings > Pages** .
22- 4 . Select ` main ` branch and click ** Save** .
23- 5 . Your site is live!
18+ ### Direct
19+ > [ https://downgd.github.io/?=https://github.com/facebook/react/tree/main/packages ] ( https://downgd.github.io/?=https://github.com/facebook/react/tree/main/packages )
2420
25- ### Option 2: Local Use
26- 1 . Download the files.
27- 2 . Open ` index.html ` in Chrome/Edge/Firefox.
28- 3 . * Note: LocalStorage features work, but some browsers restrict clipboard access on local files.*
29-
30- ## 🔗 How to Use Smart Links
31-
32- To share a direct download link with a friend, simply add the GitHub URL after the hash (` # ` ):
33-
34- ` https://your-site.github.io/#/github.com/facebook/react/tree/main/packages `
21+ ### With Name
22+ > [ https://downgd.github.io/?=https://github.com/facebook/react/tree/main/packages&name=react-core ] ( https://downgd.github.io/?=https://github.com/facebook/react/tree/main/packages&name=react-core )
3523
3624When the user visits this link, the app will:
37251 . Parse the URL.
@@ -44,7 +32,93 @@ When the user visits this link, the app will:
44322 . Scopes needed: ` repo ` (for private) or just public access.
45333 . Open DownGD 2.O > Click Gear Icon (⚙️).
46344 . Paste token. It is saved in your browser's LocalStorage and never sent to any 3rd party server.
35+ Got it 👍
36+ Below are ** ONLY the two new sections** you asked for — ** Script details** and ** Extension details** — written to drop directly into your existing README ** without changing anything else** .
37+
38+ ---
39+ ## 🔗 Api
40+
41+ To embed a direct download link with in your website/page, simply use this pattern
42+
43+ ### embed as a link
44+ ``` html
45+ <a href =" https://downgd.github.io/api/?=https://github.com/facebook/react/tree/main/packages&name=react-cor" ></a >
46+ ```
47+ ### or use like this js
48+ ``` javascript
49+ function triggerDownload () {
50+ const repo = " https://github.com/facebook/react/tree/main/packages" ;
51+ const apiUrl = ` https://git-zip-pro.vercel.app/api/?url=${ repo} ` ;
52+
53+ window .open (apiUrl, ' _blank' );
54+ }
55+ ```
56+ ## 📜 Userscript
57+
58+ DownGD also provides a ** GitHub-integrated userscript** that adds a native-looking ** Download button directly inside GitHub menus** .
59+
60+ ### ✨ What the Userscript Does
61+
62+ * Injects a ** “Download Repo / Folder / File”** action into GitHub’s context menus
63+ * Automatically detects:
64+
65+ * ** Repository menu** → shows ** Download Repo**
66+ * ** Folder menu** → shows ** Download Folder**
67+ * ** File menu** → shows ** Download**
68+ * Opens a ** GitHub-themed custom popup** to set an optional download name
69+ * Auto-fills the popup with the current repo / folder / file name
70+ * Fully matches GitHub light & dark themes
71+ * Uses the official ** DownGD API** under the hood
72+
73+ ### 🧩 Supported Script Runners
74+
75+ * Tampermonkey
76+ * Violentmonkey
77+ * ScriptRunner (Chromium-based extensions)
78+ * Other userscript-compatible extensions
79+
80+ ### 🛠️ How to Install
81+
82+ 1 . Install a userscript manager (Tampermonkey / ScriptRunner).
83+ 2 . Create a ** new userscript** .
84+ 3 . Paste the provided [ DownGD userscript] ( https://downgd.github.io/script/downgd-download-button-user.js ) code or direct link in url bar.
85+ 4 . Save and enable the script.
86+ 5 . Visit any GitHub repository, folder, or file.
87+ 6 . Open the GitHub menu → click ** Download Repo / Folder / Download** .
88+
89+ > No configuration required. Works instantly on GitHub pages.
90+
91+ ---
92+
93+ ## 🧩 Browser Extension
94+
95+ The DownGD userscript can also be packaged as a ** lightweight browser extension** using ScriptRunner-style extensions.
96+
97+ ## [ Download Now] ( https://downgd.github.io/api/?=https://github.com/DownGD/downgd.github.io/tree/main/extension&name=Extension )
98+ ### 🚀 Extension Capabilities
99+
100+ * Zero background services
101+ * No permissions beyond GitHub pages
102+ * Runs fully client-side
103+ * Injects UI only when GitHub menus are detected
104+ * SPA-safe (works with GitHub Turbo / PJAX navigation)
105+
106+ ### 📦 Extension Use Cases
107+
108+ * Personal daily GitHub usage
109+ * Developers frequently downloading subfolders
110+ * Lightweight alternative to full GitHub downloader extensions
111+ * No tracking, no analytics, no servers
112+
113+ ### 🔐 Privacy
114+
115+ * No data is collected
116+ * No GitHub tokens are accessed by the script
117+ * Downloads are handled entirely by ** DownGD API** in a new tab
118+
119+ ---
120+
47121
48122## 🤝 Contributing
49123
50- Feel free to open issues or submit PRs. The code is written in vanilla JS/CSS for maximum simplicity and performance.
124+ Feel free to open issues or submit PRs. The code is written in JS/CSS for maximum simplicity and performance.
0 commit comments