Last active
October 31, 2021 15:15
-
-
Save dispherical/b3d2429cf7266e444692c246445ed369 to your computer and use it in GitHub Desktop.
Get all emojis from twitchemotes.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var emotes = []; | |
var i = 0; | |
var img = document.querySelectorAll("img"); | |
var center = document.querySelectorAll("center"); | |
while (i < img.length) { | |
if (!img[i].getAttribute("data-regex")) i++; | |
if (!center[i]) break; | |
emotes.push({ name: img[i].getAttribute("data-regex"), src: img[i].src }); | |
i++; | |
} | |
// Emotes contains all of the emotes | |
// Do whatever you want with it. | |
// (c) aboutDavid 2021, MIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment