File size: 10,627 Bytes
f4195e4 |
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
Download GitHub directory
</title>
<meta content="width=device-width,initial-scale=1" name="viewport">
<meta content="0AMR3lQZu5bzGS6wcqw1b9udtj7QCqRuDB-vQ52zylU" name="google-site-verification">
</head>
<body>
<header>
No content is hosted on this website. This is a tool to download files from a user-provided GitHub repository URL.
</header>
<main class="text-align-center">
<h1>
<a>
download-directory • github • io
</a>
</h1>
<form>
<input autofocus id="url" name="url" placeholder="Paste GitHub.com folder URL + press Enter" size="38" type="url">
</form>
<footer class="text-align-center">
<label for="info-toggle">
info
</label>
+
<input id="token-toggle" type="checkbox">
<span>
Enter
<a target="_blank">
your GitHub token
</a>
:
<br>
<input autocomplete="off" id="token" pattern="[\da-f]{40}|ghp_.+|gho_.+|github_pat_.+" placeholder="Token" required size="45">
<br>
Brought to you by the developers of
<a target="_blank">
Refined GitHub
</a>
</span>
<label for="token-toggle">
token
</label>
<input id="info-toggle" type="checkbox">
<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>
<strong>
download-directory.github.io
</strong>
<code>
?url=https://github.com/mrdoob/three.js/tree/dev/build
</code>
</a>
</p>
<p>
You can also specify download filename by adding
<code>
filename
</code>
parameter, like:
</p>
<p>
<a>
<strong>
download-directory.github.io
</strong>
<code>
?url=https://github.com/mrdoob/three.js/tree/dev/build&filename=three-js-build
</code>
</a>
to save the file as
<strong>
three-js-build.zip
</strong>
.
</p>
</div>
</footer>
<pre class="status"></pre>
</main>
<a aria-label="View source on GitHub" class="github-corner">
</a>
<style>
:root{--font-size:17px;--line-height:1.7;--light-green:#2c5700;--dark-green:#153d20;color-scheme:dark}*{box-sizing:border-box}html{font:var(--font-size)/var(--line-height)Roboto,sans-serif;background:linear-gradient(to bottom,var(--light-green),var(--dark-green))var(--light-green);color:#fff;word-break:break-word;min-width:320px;overflow-y:auto}body{background:radial-gradient(400px 100px at 50% 100px,#ffffff21,#ffffff0a,#fff0);border:.5px solid;border-bottom:none;flex-direction:column;min-height:100vh;margin:0;display:flex}a{color:inherit}main{flex-direction:column;flex-grow:1;margin:0 20px;padding-bottom:40px;display:flex;position:relative}main>*{margin:0 0 calc(var(--font-size)*var(--line-height))}main>:not(h2),footer>:not(input){width:100%;max-width:600px;margin-left:auto;margin-right:auto}img{max-width:100%;height:auto}h1{text-align:center;margin:7vh auto .5em;font-size:2.5em;line-height:1.1;max-width:none!important}h1 img{width:320px;margin:auto;display:block}h1 a{text-decoration:none}h1,h2,h3{font-family:roboto slab,serif;font-weight:300}h2{flex-direction:row;font-size:30px;display:flex}h2:before,h2:after{content:"";border-bottom:.5px solid;flex-grow:1;margin-bottom:1.2ex}h2:before{margin-right:20px}h2:after{margin-left:20px}textarea{tab-size:2;border:3px solid silver;border-radius:4px;padding:.2em;font-size:10px;line-height:1.1}input[type=text]{border:.5px solid;border-radius:4px}input::placeholder{color:#ffffff80}input[type=url],input[type=text],textarea{font:inherit;color:inherit;background:#153d2088;outline:none;width:100%;margin:0;padding:0 .3em}textarea:focus,input[type=text]:focus{background:var(--dark-green)}ol{padding-left:0;list-style:none}ul{padding-left:3.5em;list-style:none}ul li:before{content:"→ ";margin-left:-1.5em;position:absolute}.text-monospace{font-family:monospace!important}.text-pre{white-space:pre!important}.d-inline-block{display:inline-block!important}.text-align-center{text-align:center}.status:empty{display:none}.status strong:before{content:url(logo.ccca7fb1.svg) "\a ";white-space:pre;filter:invert()}input[type=url],#token{font:inherit;text-align:center;background-color:#ffffff1a;border:solid;border-radius:.5em;max-width:100%;margin:.5em 0;padding:.5em}a,label{cursor:pointer;text-decoration:underline}[type=checkbox]{visibility:hidden;position:absolute}[type=checkbox]:checked+*+*,[type=checkbox]:not(:checked)+*{display:none}#token:valid{color:var(--green);border:.1em solid}#token:invalid{border-color:#0000;outline:.3em solid #fe0}[name=url]{font-size:.6em}.info{margin-top:.5em}pre{text-align:left;max-height:100vh;padding:0 10px;font-size:10px;overflow:auto}pre div:first-child{white-space:pre-wrap;font-size:20px}header{text-align:center;background-color:#ffffff21;padding:3em}
/*# sourceMappingURL=index.0af9895b.css.map */
/* cyrillic-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/roboto/v32/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjo0oSmYmRjRdE.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjo0oSma2RjRdE.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjo0oSmY2RjRdE.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjo0oSmbGRjRdE.woff2) format('woff2');
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjo0oSmYGRjRdE.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjo0oSmYWRjRdE.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjo0oSmb2Rj.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.github-corner:hover .octo-arm{animation:.56s ease-in-out octocat-wave}@keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (width<=500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:.56s ease-in-out octocat-wave}}
</style>
</body>
</html>
|