Conjuguemos Auto-Complete Script

Conjuguemos Auto-Complete Script

This script will automatically complete Conjuguemos with your specified results, such as amount correct, amount incorrect, and the time it took to do it all. So first navigate to a page where you start the practice thing up… For example, here:

Open Me

Once you paste the script into your browser and run it, a few message boxes will show, asking you for these settings.

To run Javascript, for let’s say Google Chrome, you just enter “javascript:” and then your javascript code in the URL box.

The Javascript script is:

if (start == 0) 
{
	if (activityType == "vocabulary") {
		jQuery.ajax('/au.php?x=sa&t='+activityType);
		randomizeList("yes");
		setvariable();
	}
	else if (activityType == "verbs") {
		jQuery.ajax('/au.php?x=sa&t='+activityType);
		howToSelectVerbs('yes');
		setvariable();
	} else {
		jQuery.ajax('/au.php?x=sa&t='+activityType);
	}
}

var getCorrect = parseInt(prompt("How many would you like to get correct?", 1));
var getIncorrect = parseInt(prompt("How many would you like to get incorrect?", 1));

var qTime = parseInt(prompt("How much time would you like each question to take? (in seconds)", 33));
var totalSecs = (getCorrect + getIncorrect) * qTime;
tmin = Math.round(totalSecs / 60);
tsec = Math.round(totalSecs % 60);

if(tmin > 59)
{
	tmin = 59;
	tsec = 58;
}

var yi = 0;
for(yi = 0; yi < getIncorrect; yi++)
{
	$('#response').val(solution + yi);
	verifyAnswer();
	$("#form").submit();
}

for(yi = 0; yi < getCorrect; yi++)
{
	$('#response').val(solution);
	verifyAnswer();
	$("#form").submit();
}
stopClock();

alert("Done! Click 'Print Results', check your results, and if all is good click 'Record/send results'.

Create by Stevie Hetelekides.");

So to do it in Google Chrome, you’d navigate to the Conjuguemos page where you begin practice(above), and then you’d put this into the URL box:

javascript: *AND THE CODE ABOVE*

Warning: When pasting into the Google Chrome URL box, the “javascript:” prefix gets removed/trimed.

This is really the first thing I’ve ever done, so don’t yell at me! Austin…

Where were you when I needed this last year for Spanish II…
Seem’s like a cool script to me, wish I had seen or known I could of done this earlier.

how does the time work? i need a certain time for it to be completed.

You put the time it takes for every question. So, say you put:

2 for correct
3 for incorrect
and 33 for time

The total time will be (2 + 3) * 33

So the total time will be 165 seconds, or:

2 minutes, 45 seconds?

Hey, I tried the script through the url on chrome. im new to this and I have no idea if its working. do I have to wait the total time or is it supposed to update with each question? cuz mines just sitting there

After 9 years I doubt it still works