Last active
March 8, 2016 21:31
-
-
Save FredrikAugust/8558dc911f5979bc6294 to your computer and use it in GitHub Desktop.
cheat for the verbal memory test on human benchmarking
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
// 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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.