Skip to content

Instantly share code, notes, and snippets.

@timss
Created August 21, 2023 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timss/6c12cc3a064d3be5ef90a887a1238898 to your computer and use it in GitHub Desktop.
Save timss/6c12cc3a064d3be5ef90a887a1238898 to your computer and use it in GitHub Desktop.
"Acquire" Discord emojis
// console.log(p[0].children)
//var p = document.querySelectorAll("[class*=emojiItem]");
// or console.log() stuff
// var a = window.open("");
// emojiImage-123abc is used for server settings emoji
// emojiItem-123abc is used for the emoji picker, but can be tricky to filter out
// default emojis or just the emoji of the server you're in
var p = document.querySelectorAll("[class*=emojiImage]");
// should correspond to each emoji
var p_name = document.querySelectorAll("[class*=emojiAliasInput]");
//for (var i = 0; i < p.length && i < 250; i++) {
for (var i = 0; i < p.length; i++) {
// a.document.write(p[i].style.backgroundImage.split('"')[1] + "<br");
var url = p[i].style.backgroundImage.split('"')[1].split('?')[0];
var name = p_name[i].getElementsByTagName('input')[0].value;
console.log("wget " + url + " -O " + name + "." + url.split('.').pop().trim());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment