CH Ben Peterson Demographics Defaults

Select your specified answers for gender and birth year on Ben Peterson's HITs. You must edit the script to specify your answers.

当前为 2015-07-26 提交的版本,查看 最新版本

// ==UserScript==
// @name          CH Ben Peterson Demographics Defaults
// @description   Select your specified answers for gender and birth year on Ben Peterson's HITs. You must edit the script to specify your answers.
// @version       1.0c
// @author        clickhappier
// @namespace     clickhappier
// @include       https://www.mturkcontent.com/dynamic/*
// @require       http://code.jquery.com/jquery-latest.min.js
// @grant         GM_log
// ==/UserScript==


// *** put MALE or FEMALE, in all-capital letters like that, between the below quotes: ***
var yourGender = "";

// *** put the year you were born, such as 1970 or 1996, between the below quotes: ***
var yourYear = "";



// if this is a Ben Peterson HIT with demographics questions
if ( $('div.demographics span.grey-box select.select-demo').length )
{
    // select your gender, if specified above
    if ( yourGender != "" )
    {
        $('div.demographics span.grey-box select.select-demo.select-gender').val(yourGender);
    }
    
    // select your birth year, if specified above
    if ( yourYear != "" )
    {
        $('div.demographics span.grey-box select.select-demo.select-birth-year').val(yourYear);
    }

    // select the 'I have read the instructions.' checkbox, only if you've filled in your gender and year
    if ( (yourGender != "") && (yourYear != "") )
    {
        $('div.instructions-confirm').find('input[type="checkbox"][name="read_instructions"]')[0].checked = true;
    }
}

QingJ © 2025

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