Created
March 5, 2019 03:08
-
-
Save wis/b4ecdb8faf2afdc1c0cb7cbc142cd0cf to your computer and use it in GitHub Desktop.
Revisions
-
Wis created this gist
Mar 5, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ var data = [...document.querySelectorAll('#emojilist-wrapper > ul > li')]. map(e => [...e.attributes].find(a => a.name.startsWith('data-count'))). map(a => ({"hex": a.name.replace('data-count',""), "dayssincereleased": a.ownerElement.attributes['data-dayssincereleased'].nodeValue, "currentcount": a.ownerElement.attributes['data-currentcount'].nodeValue, "dailycount": a.ownerElement.attributes['data-dailycount'].nodeValue }));