Requester ID && Auto Approval Time (Formatted)

Displays the Requester ID in case they change their name and the HIT's auto approval time

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name          Requester ID && Auto Approval Time (Formatted)
// @description   Displays the Requester ID in case they change their name and the HIT's auto approval time
// @include       https://www.mturk.com/mturk/preview*
// @include       https://www.mturk.com/mturk/continue*
// @include       https://www.mturk.com/mturk/accept*
// @include       https://www.mturk.com/mturk/submit
// @include       https://www.mturk.com/mturk/return*
// @version       1
// @namespace https://greasyfork.org/users/6438
// ==/UserScript==

var Hit = /accept/gi;
var Page_Status = document.forms[1].action;
if(Page_Status.search(Hit) != -1) {
	insertID(findID());
	insertID2(findID2());
	}

function insertAfter(referenceNode, newNode) {
    referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
}

function findID() {
	var inputfields = document.getElementsByTagName("INPUT");
	results = "";
	for(var i = 0;i < inputfields.length;i++) {
		if(inputfields[i].name == "requesterId") {
			results = inputfields[i].value;
			break;
		}
	}
	return results;
}

function insertID(requesterID) {
	var Tcell = document.createElement("TD");
	var Tcell3 = document.createElement("TD");
	var firstElement = document.getElementById("requester.tooltip").parentNode;
	insertAfter(firstElement.parentNode,Tcell);
	insertAfter(Tcell, Tcell3);
	Tcell.innerHTML ="<b><p style=\"color:#369;\">&nbsp;RequesterID:&nbsp;&nbsp;</p></b>";
	Tcell3.innerHTML = "<p id=\"requester.tooltip\"> " + requesterID + "</p>";
}

	
function findID2() {
	var inputfields = document.getElementsByTagName("INPUT");
	results = "";
	for(var i = 0;i < inputfields.length;i++) {
		if(inputfields[i].name == "hitAutoAppDelayInSeconds") {
			results = inputfields[i].value;
			break;
		}
	}
	return results;
}

function insertID2(AutoAppTime) {
	var Tcell2 = document.createElement("TD");
	var Tcell4 = document.createElement("TD");
	var firstElement = document.getElementById("qualifications.tooltip").parentNode.parentNode;
	var Trow = firstElement.parentNode;
	Trow.insertBefore(Tcell2, firstElement);
	insertAfter(Tcell2, Tcell4);
	Tcell2.innerHTML="<b><p style=\"color:#369;\">Auto-Approval Time:&nbsp;&nbsp;</p></b>";
	Tcell4.innerHTML= (AutoAppTime/86400).toFixed(2) + " Days (" +(AutoAppTime/86400)*1440 + " Mins)";
	
}