Created
December 4, 2016 00:29
-
-
Save metakirby5/d95b9c81842d8487dc6598ae304c3e36 to your computer and use it in GitHub Desktop.
Facebook sticker URL grabber
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
// Open the sticker menu in a chat box, then paste this into the console. | |
// This will output a space-seperated and quoted list of sticker URLs. | |
// You can then download them with `wget`. | |
Array.prototype.map.call(document.getElementsByClassName('_5r8i'), (e) => { | |
return e.style.backgroundImage.slice(4, -1) | |
}).join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment