cd /news/developer-tools/khan-academy-bookmarklet-that-is-mea… · home topics developer-tools article
[ARTICLE · art-10020] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

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

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.

read1 min views22 publishedMay 22, 2026

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);
── more in #developer-tools 4 stories · sorted by recency
── more on @khan academy 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/khan-academy-bookmar…] indexed:0 read:1min 2026-05-22 ·