# Khan Academy Bookmarklet that is meant to automatically answer your current question correctly. Simply copy and paste this code into a new bookmark.

> Source: <https://gist.github.com/jmmonkey14/a5aeb7f79fa70f7640b39dfb90e37bca>
> Published: 2026-05-22 21:01:13+00:00

khan_marklet.js

      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.
      
Learn more about bidirectional Unicode characters

 
    Show hidden characters

javascript:

/* Build URI endpoint for Khan API */

var url="/api/v1/user/exercises/"+userExercise.exercise+"/problems/"+(userExercise.total_done+1)+"/attempt";

/* Slowly, but surely, collecting the data for a successfull API call */

var data={

	complete:1,

	count_hints:0,

	time_taken:Math.floor(Math.random()*10),

	attempt_number:userExercise.total_done+1,

	attempt_content:777, /* <-- Need to find the correct answer */

	sha1:userExercise.exercise_model.sha1,

	seed:KhanUtil.getPrime(), /* <-- Need to find correct seed for current problem */

	problem_type:0

};

/* Ping the Mothership */

$.post(url,data);
