forked from download-directory/download-directory.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (34 loc) · 1.84 KB
/
Copy pathindex.html
File metadata and controls
34 lines (34 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>Download GitHub directory</title>
<link rel="stylesheet" href="index.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js" integrity="sha256-PZ/OvdXxEW1u3nuTAUCSjd4lyaoJ3UJpv/X11x2Gi5c=" crossorigin="anonymous" defer></script>
<script src="index.js" defer></script>
<meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<main>
<p class="status">Loading...</p>
</main>
<footer>
<a href="https://github.com/download-directory/download-directory.github.io">source</a>
+
<label for="info-toggle">info</label>
+
<input type="checkbox" id="token-toggle">
<span>
Enter
<a href="https://github.com/settings/tokens/new?description=Download GitHub directory&scopes=repo" target="_blank">
your GitHub token</a>:<br>
<input id="token" placeholder="Token" autocomplete="off" size="45" maxlength="40" pattern="[0-9a-f]{40}" required><br>
Brought to you by the developers of <a href="https://github.com/sindresorhus/refined-github/pull/951#issuecomment-358301513" target="_blank">Refined GitHub</a>
</span>
<label for="token-toggle">token</label>
<input type="checkbox" id="info-toggle">
<div class="info">
<p>GitHub doesn’t let you download a single folder from a repo, which might be necessary when you just need a few files from a large repository.</p>
<p>This tool will handle the download of all the files in a directory, in a single click, after you entered your token.</p>
<p>The download starts automatically when you visit pass the link to the GitHub directory as <code>url</code> parameter, like:</p>
<p><a href="https://download-directory.github.io/?url=https://github.com/mrdoob/three.js/tree/dev/build"><strong>download-directory.github.io</strong><code>?url=https://github.com/mrdoob/three.js/tree/dev/build</code></a></p>
</div>
</footer>