Make keybinds for the Project Endor (Jamelio) voice recording hits.
当前为
// ==UserScript==
// @name Project Endor (Jamelio) Keybinds
// @namespace http://kadauchi.com/
// @version 1.0.0
// @description Make keybinds for the Project Endor (Jamelio) voice recording hits.
// @author Kadauchi
// @icon http://kadauchi.com/avatar.jpg
// @include https://www.google.com/evaluation/endor/*
// @grant GM_log
// @require https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==
$("input[type='submit']").focus();
$(document).keydown(function(e){
switch(e.which){
case 97: // Numpad1 (Record)
$("div[id^=g]").eq(0).children().children().trigger("mousedown");
break;
case 98: // Numpad2 (Play)
$("div[id^=g]").eq(1).children().children().trigger("mousedown");
break;
case 13: // Enter (Submit)
$("input[type='submit']").click();
break;
default: return;
}
});