// ==UserScript== // @name Vessel Turk speeder-upper // @namespace mobiusevalon.tibbius.com // @version 0.1 // @description Defaults all radio buttons to "no", does the math at the end for you, and focuses the submit button // @author Mobius Evalon // @match https://www.mturkcontent.com/dynamic/hit* // @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js // @grant none // @downloadURL none // ==/UserScript== $(document).ready(function() { var matches = /What is (\d*)\+(\d*)\?/i.exec($("label").last().text()); if(matches !== null) { $("input:radio[value=no]").prop('checked',true); $("input:text[name=captcha]").val((matches[matches.length-1]*1)+(matches[matches.length-2]*1)); $("#submitButton").focus(); $(document).keydown(function(event) {if(event.which === 13) $("#submitButton").click();}) } });