Hide Instuctions

Hides instructions on HITs

2015-08-04 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Hide Instuctions
// @namespace    https://greasyfork.org/users/11580
// @version      1.1
// @description  Hides instructions on HITs
// @author       Kadauchi
// @include      https://www.mturkcontent.com/dynamic/*
// @include      https://www.pickfu.com/*
// @include      https://no1433.crowdcomputingsystems.com/mturk-web/public/*
// @grant        GM_log
// @require      https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// ==/UserScript==

// Creates button and hides instructions.
$(".panel.panel-primary").before('<button id="toggle" type="button"><span>Show Instructions</span></button>');
$(".panel.panel-primary").after('<br></br>');
$(".panel.panel-primary").hide();

// Toggles instructions and changes toggle text.
$('#toggle').click(function() {
    $(".panel.panel-primary").toggle();
    $('#toggle').text() == 'Show Instructions' ? str = 'Hide Instructions' : str = 'Show Instructions';
    $('#toggle span').html(str);
});