// ==UserScript==
// @name Kedar B Grama
// @namespace none
// @description 1 3 hotkeys enter to submit
// @author SarahAshlee90
// @include /^https://(www|s3)\.(mturkcontent|amazonaws)\.com/
// @version 77
// @grant GM_log
// @require https://code.jquery.com/jquery-3.1.1.min.js
// @hitname Classify cells in an image based on the staining around them
// @hitsave https://s3.amazonaws.com/mturk_bulk/hits/248245923/iCMMaqz971C0berpQ03L1A.html?assignmentId=ASSIGNMENT_ID_NOT_AVAILABLE&hitId=3N7PQ0KLI5QRB2S1YTDZ3OYIG5CE3P
// ==/UserScript==
i=0
window.onkeydown = function (event) {
if(event.which == 97){
$('input[value="red"]').eq(i).click();
i++
$('input[value="other"]').eq(i).focus();
}
if(event.which == 98){
$('input[value="green"]').eq(i).click();
i++
$('input[value="other"]').eq(i).focus();
}
if(event.which == 99){
$('input[value="other"]').eq(i).click();
i++
$('input[value="other"]').eq(i).focus();
}
if(event.which === 13){
('#submitbutton').click();
}
}