-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathindex.html
More file actions
258 lines (237 loc) · 12.4 KB
/
index.html
File metadata and controls
258 lines (237 loc) · 12.4 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
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Lets you download all images, videos and files from subreddits and users.">
<title>Reddit Downloader</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1GBFRZWDE5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-1GBFRZWDE5');
</script>
<link rel="stylesheet" href="libs/semantic-ui/semantic.min.css">
<link rel="stylesheet" href="css/index.css">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
</head>
<body>
<div class="container">
<h2 class="ui center aligned header">
<img class="ui image" src="https://avatars.githubusercontent.com/u/30738421">
<div class="content">
Reddit Downloader
</div>
</h2>
<div class="ui tiny blue message" id="newsBox">
<i class="close icon"></i>
<h2 class="ui medium header">
<div class="content">
Changelog
<div class="sub header">November 6, 2021</div>
</div>
</h2>
<p>
- Added support for downloading videos/gifs from posts linking to Gfycat<br>
- Added an option to the Naming tab for prepending the post number to file names<br>
- Added support for downloading content from crossposts
</p>
</div>
<div class="ui form">
<div class="field">
<div class="two ui fluid small buttons" id="subredditOrUserButtons">
<!-- data-target values from targets enum in JS -->
<button class="ui button active" data-target="0">Subreddit</button>
<div class="or"></div>
<button class="ui button" data-target="1">User</button>
</div>
</div>
<div class="two fields">
<div class="field">
<label for="targetNameInput">Subreddit Name</label>
<input id="targetNameInput" type="text">
</div>
<div class="field">
<label for="sectionInput">Section</label>
<select class="ui search dropdown" id="sectionInput">
<option value="hot">Hot</option>
<option value="new">New</option>
<option value="top-all">Top (all)</option>
<option value="top-year">Top (year)</option>
<option value="top-month">Top (month)</option>
<option value="top-week">Top (week)</option>
<option value="top-day">Top (day)</option>
<option value="top-hour">Top (hour)</option>
<option value="rising">Rising</option>
<option value="controversial">Controversial</option>
</select>
</div>
</div>
<div class="field">
<div class="ui pointing secondary mini menu">
<a class="item active" data-tab="first">Types</a>
<a class="item" data-tab="second">Amount</a>
<a class="item" data-tab="third">Naming</a>
<a class="item" data-tab="fourth">Filters</a>
<a class="item" data-tab="fifth">Misc</a>
</div>
<div class="ui tab active" data-tab="first">
<div class="two fields">
<div class="field">
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="hidden" id="includeImagesInput" type="checkbox" checked>
<label>Images</label>
</div>
</div>
</div>
</div>
<div class="field">
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="hidden" id="includeVideosInput" type="checkbox" checked>
<label>Videos</label>
</div>
</div>
</div>
</div>
</div>
<div class="two fields">
<div class="field">
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="hidden" id="includeGifsInput" type="checkbox">
<label>Gifs</label>
</div>
</div>
</div>
</div>
<div class="field">
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="hidden" id="includeOthersInput" type="checkbox">
<label>Files</label>
</div>
</div>
</div>
</div>
</div>
<div class="field">
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="hidden" id="includeNonRedditInput" type="checkbox" checked>
<label>Imgur and Gfycat content</label>
</div>
</div>
</div>
</div>
</div>
<div class="ui tab" data-tab="second">
<div class="field">
<label for="downloadAmountInput">Posts*</label>
<input id="downloadAmountInput" type="number" step="5" min="5" value="20">
</div>
<div class="field">
<small>* The maximum number of posts to download items from. The amount of downloaded and zipped items often exceeds the amount specified here, since posts can have more than one downloadable item. </small>
</div>
</div>
<div class="ui tab" data-tab="third">
<div class="field">
<label for="nameFormatInput">Name Items By*</label>
<select class="ui search dropdown" id="nameFormatInput">
<option value="post-title">Post Title</option>
<option value="post-id">Post ID</option>
<option value="file-name">Downloaded File Name</option>
</select>
</div>
<div class="field">
<small>* Items downloaded from crossposts will be named as if the original post was downloaded.</small>
</div>
<div class="field">
<div class="ui segment">
<div class="ui toggle checkbox">
<input class="hidden" id="prependOrderIndexInput" type="checkbox" checked>
<label>Number downloads according to the order of posts<br><small>E.g. <b>0_</b>neite.png, <b>3_</b>bob.png, #<b>0</b> being the first post and #<b>1</b>, #<b>2</b> having no downloadable items</small></label>
</div>
</div>
</div>
</div>
<div class="ui tab" data-tab="fourth">
<div class="field">
<label for="searchFilterInput">Search Text</label>
<input id="searchFilterInput" type="text">
</div>
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="hidden" id="restrictByScoreInput" type="checkbox">
<label>Restrict downloads by post score</label>
</div>
</div>
<div class="two fields">
<div class="field">
<select class="ui search disabled dropdown" id="restrictByScoreTypeInput">
<option value="ge">Greater Than or Equal To</option>
<option value="le">Less Than or Equal To</option>
</select>
</div>
<div class="field">
<input id="restrictByScoreValueInput" type="number" min="0" value="100" disabled>
</div>
</div>
</div>
</div>
<div class="ui tab" data-tab="fifth">
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="hidden" id="includeAsLinkInput" type="checkbox">
<label>Include item as link if it couldn't be downloaded</label>
</div>
</div>
</div>
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="hidden" id="includeNsfwInput" type="checkbox">
<label>Include material marked as NSFW (Not Safe For Work)</label>
</div>
</div>
</div>
</div>
</div>
<button class="fluid ui button" id="downloadButton">Download</button>
</div>
<div class="ui negative message" id="unknownNameErrorBox">
<div class="header">Whoops!</div>
<p>It appears that there's no <span class="downloadTypeText"></span> called <b class="targetNameText"></b>.</p>
</div>
<div class="ui warning message" id="noImagesFoundWarningBox">
<div class="header">Whoops!</div>
<p>It appears that the <span class="downloadTypeText"></span> <b class="targetNameText"></b> doesn't have any content that matches your search query.</p>
</div>
<div class="ui message" id="downloadingInfoBox">
<div class="header">Downloading</div>
<p>You've downloaded <b id="downloadedCountText"></b> of <b id="toDownloadCountText"></b> items so far (<b id="downloadedSizeText"></b> MiB).</p>
<button class="fluid ui basic button" id="cancelDownloadButton">Cancel</button>
</div>
<div class="ui positive message" id="processingInfoBox">
<div class="header">Processing</div>
<p>Your downloaded items are being made into a ZIP file. This can take a while, please wait until a file saving prompt appears.</p>
<p>Total progress: <b id="zippingProgressText">0</b><b>%</b></p>
<p>Current file name: <b id="zippingFileNameText">N/A</b></p>
</div>
</div>
<script src="libs/jquery.min.js"></script>
<script src="libs/semantic-ui/semantic.min.js"></script> <!-- depends on jQuery -->
<script src="libs/jszip.min.js"></script>
<script src="libs/FileSaver.min.js"></script>
<script src="js/index.js"></script>
</body>
</html>