[.01 Vale]Click on the described object

1-3 to select radio buttons,` to submit, hide instructions. Select radio button before clicking image to submit correctly

目前為 2015-07-19 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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. Select radio button before clicking image to submit correctly
// @include     https://www.mturkcontent.com/dynamic/hit*
// @version     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();
	$("h3:contains('Examples:')").hide();
	$("img[class='imagecontainer']").hide();
	$("ul:contains('Please click anywhere inside')").hide();
}
if ( $("p:contains('Please click on the following object:')").length )  
{
	$("input:radio[id='Confident']").focus();
		if(autosubmit)
	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();
	};
}
/*
<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">
*/