Skip to content

Instantly share code, notes, and snippets.

@FredrikAugust
Last active March 8, 2016 21:31
Show Gist options
  • Save FredrikAugust/8558dc911f5979bc6294 to your computer and use it in GitHub Desktop.
Save FredrikAugust/8558dc911f5979bc6294 to your computer and use it in GitHub Desktop.
cheat for the verbal memory test on human benchmarking
// Human Benchmarking - Verbal Memory Test cheat
// Written by Fredrik A. Madsen-Malmo
//
// For educational purposes only. Duh
// Error when trying to access jQuery outside the top-level scope
var words = [];
var j = $;
var last;
function cheat () {
var word = j('span[ng-bind="word"]').innerHTML;
last = word;
if (words.indexOf(word) == -1) {
words.push(word);
j('a[ng-click="test.onAnswer(false)"]').click();
} else {
j('a[ng-click="test.onAnswer(true)"]').click();
}
}
interval = setInterval(cheat, 20);
@FredrikAugust
Copy link
Author

http://www.humanbenchmark.com/tests/verbal-memory
Link to the test. Just open a console and paste in the code and watch the points rack up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment