您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Defaults all radio buttons to "no", does the math at the end for you, and focuses the submit button
当前为
- // ==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();})
- }
- });