[.01 Vale]Click on the described object

1-3 to select radio buttons,` to submit, hide instructions

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        [.01 Vale]Click on the described object
// @author robert
// @namespace   https://greasyfork.org/en/users/13168-robert
// @description 1-3 to select radio buttons,` to submit, hide instructions
// @include     https://www.mturkcontent.com/dynamic/hit*
// @version     1.1
// @grant       none
// @require  http://code.jquery.com/jquery-2.1.0.min.js
// ==/UserScript==
var autosubmit = false;
var hideInstructions = true;

if(hideInstructions)
{
	$("h2:contains('Instructions')").hide();
	$("h2:contains('Task')").hide();
	$("h3:contains('Examples:')").hide();
	$("img[class='imagecontainer']").hide();
	$("ul:contains('Please click anywhere inside')").hide();
	/* I don't know if this works
	var prompt = $("p:contains('Please click on the following object:')");
	var whatToFind = prompt.text().replace("Please click on the following object:", "");
	alert(whatToFind);
	prompt.html('<b>' + whatToFind + '</b>');
	*/
}
if ( $("p:contains('Please click on the following object:')").length )  
{
	$("input:radio[id='Confident']").focus();
  if(autosubmit)
  	$("input[id='submitButton']").autocomplete = 'on';
	window.onkeydown = function(e)
	{
		if (e.keyCode === 97 || e.keyCode === 49) //1 
		{
			$("input:radio[id='Confident']").click();
				if (autosubmit)
					  $("input[id='submitButton']").click();
		}
		if (e.keyCode === 98 || e.keyCode === 50) //2
		{  
			$("input:radio[id='MultiObj']").click();
				if (autosubmit) 
					  $("input[id='submitButton']" ).click();
		}
		if (e.keyCode === 99 || e.keyCode === 51) //3 
		{   
			$("input:radio[id='NoObj']").click(); 
				if (autosubmit) 
					  $("input[id='submitButton']" ).click();
		}
		if (e.keyCode ===  192 ) //`
				$("input[id='submitButton']").click();

	};
}
// i suspect you need to get rid of the disabled attribute(?) from "submitButton" to get autosubmit to work
//<input id="submitButton" type="submit" value="complete the task before you can submit" disabled="" autocomplete="off">
//<input id="submitButton" type="submit" value="submit" autocomplete="off">