Sergey Schmidt Submit

Fix buttons, clean instructions, use other scripts for individual HITs for efficient workflow. Make hide instructions from Kadauchi work for Sergey's (usual) formatting.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Sergey Schmidt Submit
// @description  Fix buttons, clean instructions, use other scripts for individual HITs for efficient workflow. Make hide instructions from Kadauchi work for Sergey's (usual) formatting.
// @author       ChrisTurk
// @require      https://code.jquery.com/jquery-3.1.0.min.js
// @include      /^https://(www|s3)\.(mturkcontent|amazonaws)\.com/
// @version 0.0.1.20161018145318
// @namespace https://greasyfork.org/users/53857
// ==/UserScript==

$(document).ready(function(){
	if ($( 'body:contains(Instructions [-])' ).length) { SergeyPls(); }
});

function SergeyPls() {
	// Fix submit button, enable it just in case
	$( '#submitButton' ).css('display','block');
	$( '#submitButton' ).prop("disabled", false);

	// Creates button and hides instructions.
	$( '#instructions' ).before('<button id="toggle" type="button"><span>Show Instructions</span></button>');
	$( '#instructions' ).hide();
	$( '#sample-task' ).hide();
	$( '#please-note' ).hide();

	// Toggles instructions and changes toggle text.
	$( '#toggle' ).click(function() {
		$( '#instructions' ).toggle();
		$( '#sample-task' ).toggle();
		$( '#please-note' ).toggle();
		$( '#toggle' ).text() == 'Show Instructions' ? str = 'Hide Instructions' : str = 'Show Instructions';
		$( '#toggle span' ).html(str);
	}); //toggle function end

}