forked from ThaTiemsz/Discord-Emoji-Downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
161 lines (148 loc) · 8.02 KB
/
index.html
File metadata and controls
161 lines (148 loc) · 8.02 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<title>Discord Emoji Downloader</title>
<meta name="author" content="Tiemen" />
<meta name="description" content="Get all emojis from a server in a ZIP file." />
<meta name="keywords" content="discord, emoji, emojis, discordapp, discord app, emoji downloader, download emoji" />
<meta name="theme-color" content="#7289DA" />
<meta property="og:title" content="Discord Emoji Downloader" />
<meta property="og:description" content="Get all emojis from a server in a ZIP file." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://thatiemsz.github.io/Discord-Emoji-Downloader/" />
<link rel="stylesheet" type="text/css" href="assets/semantic.min.css" />
<link rel="stylesheet" type="text/css" href="assets/app.css" />
</head>
<body>
<div class="ui inverted raised very padded text container segment">
<h1 class="ui header">Discord Emoji Downloader</h1>
<div class="ui inverted secondary pointing menu">
<a class="item active" data-tab="default">Default</a>
<a class="item" data-tab="manual">Manual</a>
</div>
<div class="ui inverted tab segment active" id="default-1" data-tab="default">
<div class="ui warning message">
<i class="close icon"></i>
<div class="header">
Warning: be careful, sharing your user token can be dangerous!
</div>
This page does not use your user token in any harmful way and only uses it to authenticate with Discord, fetch your server list and their emojis.<br />
(<a href="https://github.com/ThaTiemsz/Discord-Emoji-Downloader" target="_blank">Source can be found here</a>)
</div>
<form class="ui inverted form">
<div class="field">
<label>User Token <a href="#" id="tokenHelp">(?)</a> </label>
<input type="password" name="token" id="token" placeholder="mfa.ABcd1e2Fgh3i-jKlmnoPQRstu4VWx4yz5A6b7cDEFGhiJk8LmNOPqR_sSTUV9XyzabcdeF0Xd" />
</div>
<button name="continue" id="continue" class="ui button">Continue</button>
</form>
</div>
<div class="ui inverted tab segment" id="default-2" data-tab="default-hide">
<form class="ui inverted form">
<div class="field">
<label>Server</label>
<div class="ui fluid search selection dropdown" id="server-select">
<input type="hidden" name="server" />
<i class="dropdown icon"></i>
<div class="default text">Select Server</div>
</div>
</div>
<div class="field" id="emojis">
<label>Select emojis <span id="emojicount"></span></label>
<div class="ui fluid multiple search selection dropdown" id="emoji-select">
<input type="hidden" name="emojis" />
<i class="dropdown icon"></i>
<div class="default text">Select Emojis</div>
</div>
</div>
<div class="field" id="emojis2">
<label>Select emojis <span id="emojicount2"></span></label>
<div class="ui fluid multiple search selection dropdown" id="emoji-select2">
<input type="hidden" name="emojis2" />
<i class="dropdown icon"></i>
<div class="default text">Select Emojis</div>
</div>
</div>
<div class="field">
<button name="submit" id="submit" class="ui primary button">Submit</button>
</div>
</form>
</div>
<div class="ui inverted tab segment" id="manual" data-tab="manual">
<p>Make a GET request to <code>https://discordapp.com/api/v6/guilds/:id</code>, with <code>:id</code> being the server ID, also make sure you're authorised with your user token. Then copy paste the response JSON data in the textarea below <i>(in which an example is placed)</i>.</p>
<p>
<div class="ui inverted form">
<div class="field">
<label>Guild Object</label>
<div id="editor" style="height: 350px; width: 100%;"></div>
</div>
<div class="field">
<button name="submit" id="submit" class="ui primary button">Submit</button>
</div>
</div>
</p>
</div>
<div id="messages">
<div class="ui icon message" id="loading">
<i class="notched circle loading icon"></i>
<div class="content">
<div class="header" id="loading-header">
Just a moment
</div>
<p id="loading-msg">Collecting the emojis for you.</p>
</div>
</div>
<div class="ui icon success message" id="success">
<i class="smile icon"></i>
<div class="content">
<div class="header" id="success-header">
We found them!
</div>
<p id="success-msg">Found <strong>NaN</strong> emojis which are packed in a ZIP file above.</p>
</div>
</div>
<div class="ui icon error message" id="error">
<i class="warning circle icon"></i>
<div class="content">
<div class="header" id="error-header">
An error occured
</div>
<p id="error-msg"></p>
</div>
</div>
</div>
<div class="ui basic modal">
<div class="ui icon header">
How to get your user token
</div>
<div class="content">
<p>
<ul>
<li>Open the Discord desktop app or login on the Discord website <a href="https://discord.com/app" target="_blank">here</a></li>
<li>Open the Chrome Dev Tools with the keyboard shortcut <pre>F12</pre> or <pre>Ctrl + Shift + I</pre></li>
<li>Go to the <strong>Network</strong> tab</li>
<li>Click the <strong>XHR</strong> button to filter to XHR requests only</li>
<li>Do any action in Discord like <strong>opening a channel</strong></li>
<li>Click the <strong>science</strong> request that shows up in the list</li>
<li>Go to the <strong>Headers</strong> tab</li>
<li>Find <strong>authorization</strong> under <strong>Request Headers</strong> and copy your token (make sure you copy the entire token and don't copy any spaces)</li>
</ul>
<img src="https://i.imgur.com/2E6yB21.png" class="ui image" />
</p>
</div>
<div class="actions">
<div class="ui green ok inverted button">
<i class="checkmark icon"></i>
Got it
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.8/ace.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.8/mode-json.js"></script>
<script type="text/javascript" src="assets/app.js"></script>
<script type="text/javascript" src="assets/semantic.min.js"></script>
</body>
</html>