
I'll be sure to credit you accordingly! Licence This is fully open source! If you want to take a crack at automating this script, or if you'd like to add support for more types of questions, like matching for example, feel free to submit a pull request. 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. I wrote this for Chrome, although all should work on gecko. Sometimes, they try to throw you off by placing correct as the value to a key labeled either status or considered. Within this graphql response is a json blob containing a list of questions, most of them with a correct: boolean attribute. The server responds with everything your client needs to draw and grade your question. On every 'quiz' you open in the app, your browser makes a request to /getAssessmentItem. Don't be surprised when you run into a question you'll actually have to do


Change your console log level to only info for a much better experience.You can also press tab to get to the next field. When there are multiple answers, fill in the boxes left-to-right and then down.Khan Academy always requests the current and next question, so expect the second to last console log message to be the correct answer.

The script will console log answers as the browser gets them.
