Vessel Turk speeder-upper

Defaults all radio buttons to "no", does the math at the end for you, and focuses the submit button

目前为 2015-11-22 提交的版本。查看 最新版本

// ==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
// ==/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();})
    }
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址