Last active
August 25, 2018 23:48
-
-
Save aarontam/5d7c7e3771547d577d800a8dcb3cb685 to your computer and use it in GitHub Desktop.
Retrieve Sporcle answers by reversing the cipher
This file contains 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 most Sporcle quizzes, launch the web inspector, and paste and execute this in the console to reveal all of the answers | |
answers.map(encodedAnswer => { | |
let decodedAnswer = ''; | |
for (encodedLetter of encodedAnswer) { | |
const decodedLetter = Object.keys(asta).find(key => asta[key] === encodedLetter); | |
decodedAnswer += decodedLetter == null ? ' ' : decodedLetter; | |
} | |
return decodedAnswer; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment