Skip to content

Instantly share code, notes, and snippets.

@aarontam
Last active August 25, 2018 23:48
Show Gist options
  • Save aarontam/5d7c7e3771547d577d800a8dcb3cb685 to your computer and use it in GitHub Desktop.
Save aarontam/5d7c7e3771547d577d800a8dcb3cb685 to your computer and use it in GitHub Desktop.
Retrieve Sporcle answers by reversing the cipher
// 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