-
Notifications
You must be signed in to change notification settings - Fork 87
/
index.html
179 lines (165 loc) · 9.43 KB
/
index.html
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
<!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" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.5.0/semantic.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" type="text/css" href="./assets/app.css" />
<link rel="manifest" href="./manifest.json" />
</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">
<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 <span class="link" onclick="javascript:helpModal();">(?)</span></label>
<input type="password" name="token" id="token" placeholder="mfa.ABcd1e2Fgh3i-jKlmnoPQRstu4VWx4yz5A6b7cDEFGhiJk8LmNOPqR_sSTUV9XyzabcdeF0Xd" autocomplete="new-password" />
</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" id="stickers">
<label>Select stickers <span id="stickercount"></span></label>
<div class="ui fluid multiple search selection dropdown" id="sticker-select">
<input type="hidden" name="stickers" />
<i class="dropdown icon"></i>
<div class="default text">Select Sticker</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://discord.com/api/v10/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/stickers 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 id="emoji-count">NaN</strong> emojis and <strong id="sticker-count">NaN</strong> stickers 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>To enable the ability to paste in the console you might need to type "<code style="user-select: all;">allow pasting</code>"</li>
<li>
Paste and execute the following snippet:
<p>
<code style="user-select: all;">(webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()</code>
</p>
</li>
<li>Your token will be returned at the bottom of the console. Copy the contents between "". This is your user token.</li>
</ul>
</p>
</div>
<div class="actions">
<div class="ui green ok inverted button">
<i class="checkmark icon"></i>
Got it
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.36.2/ace.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.36.2/mode-json.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.5.0/semantic.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="module" src="./assets/app.js"></script>
<script>
const helpModal = () => {
$('.ui.basic.modal').modal('show')
}
</script>
</body>
</html>