Khan Academy Answer Revealer
If you found this script interesting or useful, please consider starring the repo above.
- Download a userscript manager like TamperMonkey for Chrome or Greasemonkey for Firefox if you haven’t already.
- Use this link to install the script.
- Click the extension while in Khan Academy and ensure both the extension and the script are on.
- Open Developer Tools and go to the Console tab. The script will console log answers as the browser gets them.
- Khan Academy always requests the current and next question, so expect the second to last console log message to be the correct answer.
- Change your console log settings to the below for a much better experience:
- Check to see that the console-logged answer makes sense before entering it. This can eliminate question-answer errors.
- This works only for expression, free response, multiple choice, and dropdown questions.
- The script will do its best to find the answer in the question data, but some edge case questions do not follow the same structure, therefore they can’t be accounted for. Do not be surprised to find a question that you actually have to do.
This should work on any browser supporting userscript integration. It essentially hooks into the browser’s
fetch, which is what Khan Academy uses now instead of
XMLHttpRequest (this is why the some old exploits no longer work, along with the endpoint change), and when
/getAssessmentItem is requested, it logs the “important” part of the response.