mmmturkeybacon Single Page Queue

Shows all HITs in the queue on a single page.

Version au 26/05/2015. Voir la dernière version.

// ==UserScript==
// @name        mmmturkeybacon Single Page Queue
// @version     1.20
// @description Shows all HITs in the queue on a single page.
// @author      mmmturkeybacon
// @namespace   http://userscripts.org/users/523367
// @match       https://*.mturk.com/mturk/myhits
// @match       https://*.mturk.com/mturk/sortmyhits?*
// @match       https://*.mturk.com/mturk/viewmyhits?*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @grant       GM_log
// ==/UserScript==

$(document).ready(function()
{
    var $searchSpec = $("input[type='hidden'][value^='HITSearch'][name='searchSpec']");
    var old_searchSpec = $searchSpec.val().match(/^HITSearch\#T\#1\#[0-9]*\#-1\#T\#/);
    var new_searchSpec = $searchSpec.val().replace(old_searchSpec, 'HITSearch#T#1#10#-1#T#');
    $searchSpec.val(new_searchSpec);

    var $go_button = $('input[name="/sort"]');
    $go_button.after('<input id="mtbspq_button" type="button" value="SHOW ALL" style="vertical-align: middle; height: 21px; color: white; background-color: #CB6533; font-weight: 600; margin-left: 3px; border-radius: 10px; moz-border-radius: 10px; webkit-border-radius: 10px; border:1px white solid;">');
    $('input[id="mtbspq_button"]').bind('click', function()
    {
        // Show up to 99 HITs on a single page. The most HITs I've ever seen in a full queue is 27, so set the max to 99 (instead of 25) to get every HIT and to future proof.
        old_searchSpec = $searchSpec.val().match(/^HITSearch\#T\#1\#[0-9]*\#-1\#T\#/);
        new_searchSpec = $searchSpec.val().replace(old_searchSpec, 'HITSearch#T#1#99#-1#T#');
        $searchSpec.val(new_searchSpec);
        $go_button[0].click();
    });
});
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元