Hide Instuctions

Hides instructions on HITs

当前为 2015-08-19 提交的版本,查看 最新版本

// ==UserScript==
// @name         Hide Instuctions
// @namespace    https://gf.qytechs.cn/users/11580
// @version      1.2
// @description  Hides instructions on HITs
// @author       Kadauchi
// @include      https://www.mturkcontent.com/dynamic/*
// @include      https://s3.amazonaws.com/mturk_bulk/hits/*
// @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);
});    

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址