// ==UserScript==
// @name Andrew Shin
// @namespace Sarahashlee90
// @description up arrow for YY submit, right arrow for YN submit, down arrow for NN submit
// @include https://s3.amazonaws.com/*
// @version 1
// @grant GM_log
// @require https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==
window.onkeydown = function (event) {
if(event.which == 38){ //up arrow hotkey
$(".row > fieldset:nth-child(6) > div:nth-child(2) > label:nth-child(1) > input:nth-child(1)").click();
$(".row > fieldset:nth-child(7) > div:nth-child(2) > label:nth-child(1) > input:nth-child(1)").click();
$("#submitButton").click();
}
if(event.which == 39){ //right arrow hotkey
$(".row > fieldset:nth-child(6) > div:nth-child(2) > label:nth-child(1) > input:nth-child(1)").click();
$(".row > fieldset:nth-child(7) > div:nth-child(3) > label:nth-child(1) > input:nth-child(1)").click();
$("#submitButton").click();
}
if(event.which == 40){ //down arrow hotkey
$(".row > fieldset:nth-child(6) > div:nth-child(3) > label:nth-child(1) > input:nth-child(1)").click();
$(".row > fieldset:nth-child(7) > div:nth-child(3) > label:nth-child(1) > input:nth-child(1)").click();
$("#submitButton").click();
}
}