HideReject

Hides rejections

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         HideReject
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Hides rejections
// @author       Aesric
// @match        https://worker.mturk.com/dashboard*
// @grant        none
// ==/UserScript==

function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}

function hideRejections() {
    sleep("1").then(() => {
        var rows = document.getElementsByClassName("p-x-sm column rejected-column text-xs-right");
        for(var i = 0; i < rows.length; i++) {
            rows[i].style.display = "none";
        }
    });
}

(function() {
    // Rejection count and rejection rate
    document.querySelector("#dashboard-hits-overview > div > div > div:nth-child(6) > div.col-xs-7 > strong").style.display =
    document.querySelector("#dashboard-hits-overview > div > div > div:nth-child(6) > div.col-xs-5.text-xs-right").style.display =
    document.querySelector("#dashboard-hits-overview > div > div > div:nth-child(7) > div.col-xs-8 > strong").style.display =
    document.querySelector("#dashboard-hits-overview > div > div > div:nth-child(7) > div.col-xs-4.text-xs-right").style.display = "none";

    // Rejection columns
    document.querySelector("#MainContent > div:nth-child(4) > div.col-xs-12.col-md-8.col-md-pull-4 > div:nth-child(2) > div > div > ol > li.hidden-sm-down > span.column-header.p-x-sm.rejected-column.text-xs-right").style.display = "none";
    hideRejections();

    var hiddenRows = document.getElementsByClassName("desktop-row hidden-sm-down");
    for(var i = 0; i < hiddenRows.length; i++) {
        hiddenRows[i].addEventListener("click", hideRejections);
    }
})();