Andy K Helper Script

Andy K Helper Hit

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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();
});