Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Khan Academy Bookmarklet that is meant to automatically answer your current question correctly. Simply copy and paste this code into a new bookmark.
/* 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={
time_taken:10, /* <-- I would prefer a random number */
attempt_content:777, /* <-- Need to find the correct answer */
seed:KhanUtil.getPrime(), /* <-- Need to find correct seed for correct problem */
/* Ping the Mothership */

This comment has been minimized.

Copy link
Owner Author

mexitek commented Sep 11, 2011

There is a good explanation about how/why the "seed" attribute is used here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.