MTurk Queue Count

Displays the current queue count above the HIT area.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name MTurk Queue Count
// @author Chet Manley
// @version 0.1
// @description Displays the current queue count above the HIT area.
// @include https://www.mturk.com/mturk/*
// @require http://code.jquery.com/jquery-latest.min.js
// @grant none
// @namespace https://greasyfork.org/users/6438
// ==/UserScript==


// Displays the current queue count above the HIT area.

$(document).ready(function () {
console.log('AMT Tools Queue Count loaded');

var myHITsURL = 'https://www.mturk.com/mturk/myhits';
var queueCount = '';
var HITsRemainingStr = ' HITs remaining';

$.ajax({
async: false,
type: 'GET',
url: myHITsURL,
success: function (data) {
queueCount = $('.title_orange_text', $(data)).text().trim();
}
});

if (queueCount.length) {
queueCount = queueCount.split(' of ')[1];
queueCount = queueCount.split(' ')[0];

if (parseInt(queueCount) == 1) {
HITsRemainingStr = ' HIT remaining';
}
} else {
HITsRemainingStr = 'Your queue is empty';
}

var queueCountStr = queueCount + HITsRemainingStr;

$('#theTime').parent().parent().parent().append('< tr><td align="left" valign="top" class="title_orange_text" nowrap="" style="padding-top: 3px; padding-left: 5px;"><b>Queue:</b> <span>' + queueCountStr + '</span></td></tr>');
});