Expand Survey Instructions

Auto-expand the collapsed survey instructions used in some HITs.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Expand Survey Instructions
// @version      0.2.1
// @description  Auto-expand the collapsed survey instructions used in some HITs.
// @author       Kerek
// @namespace    Kerek
// @include      https://s3.amazonaws.com/mturk_bulk/hits*
// @include      https://www.mturkcontent.com/dynamic/*
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// @grant        GM_log
// ==/UserScript==

if ($('a#collapseTrigger strong:contains("Survey Link Instructions")').length > 0 && $('.panel-primary span.collapse-text').text() == "(Click to expand)")
{
    setTimeout(function(){ $('a#collapseTrigger')[0].click(); }, 100);  // added a small delay to prevent the template's hiding code sometimes kicking in after this ran, undoing the unhiding; wrapping it in document.ready or/and window.load didn't help, so did this instead
}