{"slug": "khan-academy-bookmarklet-that-is-meant-to-automatically-answer-your-current-copy", "title": "Khan Academy Bookmarklet that is meant to automatically answer your current question correctly. Simply copy and paste this code into a new bookmark.", "summary": "The article describes a bookmarklet designed to automatically answer questions on Khan Academy by sending a fabricated attempt to the site's API. The provided JavaScript code constructs a request with a fake correct answer and a random time taken, then posts it to the Khan Academy server. The summary notes that the code is incomplete, as it requires finding the correct answer and seed for the current problem.", "body_md": "khan_marklet.js\n\n      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.\n      \nLearn more about bidirectional Unicode characters\n\n \n    Show hidden characters\n\njavascript:\n\n/* Build URI endpoint for Khan API */\n\nvar url=\"/api/v1/user/exercises/\"+userExercise.exercise+\"/problems/\"+(userExercise.total_done+1)+\"/attempt\";\n\n/* Slowly, but surely, collecting the data for a successfull API call */\n\nvar data={\n\n\tcomplete:1,\n\n\tcount_hints:0,\n\n\ttime_taken:Math.floor(Math.random()*10),\n\n\tattempt_number:userExercise.total_done+1,\n\n\tattempt_content:777, /* <-- Need to find the correct answer */\n\n\tsha1:userExercise.exercise_model.sha1,\n\n\tseed:KhanUtil.getPrime(), /* <-- Need to find correct seed for current problem */\n\n\tproblem_type:0\n\n};\n\n/* Ping the Mothership */\n\n$.post(url,data);", "url": "https://wpnews.pro/news/khan-academy-bookmarklet-that-is-meant-to-automatically-answer-your-current-copy", "canonical_source": "https://gist.github.com/jmmonkey14/a5aeb7f79fa70f7640b39dfb90e37bca", "published_at": "2026-05-22 21:01:13+00:00", "updated_at": "2026-05-22 21:05:09.292979+00:00", "lang": "en", "topics": ["developer-tools", "open-source"], "entities": ["Khan Academy"], "alternates": {"html": "https://wpnews.pro/news/khan-academy-bookmarklet-that-is-meant-to-automatically-answer-your-current-copy", "markdown": "https://wpnews.pro/news/khan-academy-bookmarklet-that-is-meant-to-automatically-answer-your-current-copy.md", "text": "https://wpnews.pro/news/khan-academy-bookmarklet-that-is-meant-to-automatically-answer-your-current-copy.txt", "jsonld": "https://wpnews.pro/news/khan-academy-bookmarklet-that-is-meant-to-automatically-answer-your-current-copy.jsonld"}}