// ==UserScript==
// @name Amazon Requester Inc. A9 Data Validation
// @namespace Space
// @version 0.1
// @description Various a9 stuff
// @author Icy
// @include https://www.mturkcontent.com/dynamic/*
// @include https://s3.amazonaws.com/mturk_bulk/hits/*
// ==/UserScript==
var colourHit = false;
if(document.getElementById("result11")) {
colourHit = true;
console.log("Colour compare hit.");
}
document.addEventListener( "keydown", kas, false);
function kas(i) {
/* Colour A9's */
if (i.keyCode == 49 && colourHit === true) { //1
document.getElementById("result11").click();
}
if (i.keyCode == 50 && colourHit === true) { //2
document.getElementById("result15").click();
}
if (i.keyCode == 57 && colourHit === true) { //9
document.getElementById("result21").click();
}
if (i.keyCode == 48 && colourHit === true) { //0
document.getElementById("result25").click();
}
if (i.keyCode == 188 && colourHit === true) { //,(comma)
document.getElementById("submitButton").click();
}
}
window.focus();