Skip to content

Instantly share code, notes, and snippets.

@Pezmc
Last active August 29, 2015 14:08
Show Gist options
  • Save Pezmc/b214e945ce71a8a59a8e to your computer and use it in GitHub Desktop.
Save Pezmc/b214e945ce71a8a59a8e to your computer and use it in GitHub Desktop.
Who Needs Maths
var cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic = function() {
var q = $("#question").text();
q = q.substr(0, q.length - 2).replace('÷', '/').replace('x', '*');
$("#answer").val(eval(q)).keydown().keyup().keypress();
}
setInterval(cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic, 250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment