Quick and dirty job counter

Quick solution for counting the number of jobs completed in the worker history table

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Quick and dirty job counter
// @namespace    mobiusevalon.tibbius.com
// @version      0.3
// @require      https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js
// @include      /^https{0,1}:\/\/work\.crowdsurfwork\.com\/reports\/work_data\/worker.*$/
// @author       Mobius Evalon
// @description  Quick solution for counting the number of jobs completed in the worker history table
// @grant        none
// ==/UserScript==
$.noConflict(true);

$(document).ready(function() {
    if(!$("#job_count").length) $("#date_filter").after(
        $('<span/>')
        .css("margin-left","10px")
        .attr("id","job_count")
        .click(function() {
            var $empty = $("td.dataTables_empty").parent();
            $(this).text("Job count: "+$(".tab-pane:visible tbody tr").not($empty).length+" (Click to refresh)");
        })
    );
    $("#job_count").click();
});