Andy K Helper Script

Andy K Helper Hit

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name       Andy K Helper Script
// @namespace  http://userscripts.org/users/522315
// @version    0.3
// @description  Andy K Helper Hit
// @match      https://s3.amazonaws.com/mturk_bulk/hits*
// @match      https://www.mturkcontent.com/dynamic/hit*
// @require     http://code.jquery.com/jquery-latest.min.js
// @copyright  2014+, You
// ==/UserScript==

$('select>option:eq(1)').attr('selected', true);
$('textarea#tag6').val("No Issues");

$('ul').each(function () {
    $(this).remove();
});
$('h3').each(function () {
    $(this).remove();
});

var isLink = false;

$('p').each(function () {
    console.log($(this).text().indexOf("Website URL"));
    console.log(isLink);
    if ($(this).text().indexOf("Website URL") != -1)
        isLink = true;
    else if ($(this).text().indexOf("Website URL") == -1 && !isLink)
        $(this).remove();
});