Chrome Extension for

I noticed quite a few people on my Facebook timeline posting about quizzes from a site

On checking the quizzes using the Chrome inspector, I found that it was simply setting string of 1’s and 0’s as a post request to record correct and incorrect answers.

Here is an example:

Screen Shot 2014-08-24 at 7.02.39 PM

As you can see, on clicking an answer, it calls a javascript function nextQuestion with a string of 1’s and 0’s as arguments. Here is the function nextQuestion:

function nextQuestion(answer) {
    document.getElementById("answer").value = answer;

If all the 0’s in the string passed to the function nextQuestion are replaced by 1’s, every answer becomes the “correct” answer.

$("button[onclick*='nextQuestion']").each(function() {
	var newonclick = $(this).attr("onclick").replace('0','1');
	$(this).attr("onclick", newonclick);

This can be packed in a simple chrome extension which will run on every page load.

Chrome extension source code

Packed Chrome extension (You may need to enable developer mode.)