|
<!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} |
|
|
|
|
|
|
|
|
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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; |
|
} |
|
|
|
@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> |
|
|