您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows auto-approval time and links to requester on turkopticon
当前为
// ==UserScript== // @name mTurk - Show Auto-App time & Link Turkopticon // @description Shows auto-approval time and links to requester on turkopticon // @include /^https://www.mturk.com/mturk/(preview|continue|accept|submit|return)*/ // @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js // @version 0.0.1.20141029224828 // @namespace https://greasyfork.org/users/6438 // ==/UserScript== // Based off https://userscripts.org/scripts/show/130470 this.$ = this.jQuery = jQuery.noConflict(true); if(document.forms[1].action.search(/accept|submit/gi) != -1) { showAutoAppTime(); showRequesterID(); } function showAutoAppTime() { var AutoAppTime = $('[name=hitAutoAppDelayInSeconds]').attr('value'); var top = $(document.getElementById("qualifications.tooltip")).parent().parent(); $(top).append($('<td class="capsule_field_title" align="right" valign="top" nowrap width="100%"><p style="color:#369;">Auto-Approval Time: </p></td>')); var Days = Math.floor(AutoAppTime / (60*60*24)); var Hours = Math.floor(AutoAppTime / (60*60)%24); var Mins = Math.floor(AutoAppTime / (60)%60); var Secs = AutoAppTime % 60; $(top).append($('<td nowrap>' + (Days == 0 ? "" : Days + (Days > 1 ? " days " : " day ")) + (Hours == 0 ? "" : Hours + (Hours > 1 ? " hours " : " hour ")) + (Mins == 0 ? "" : Mins + (Mins > 1 ? " minutes " : " minute ")) + (Secs == 0 ? "" : Secs + (Secs > 1 ? " seconds " : " second ")) + '</td>')); } function showRequesterID() { var base = "http://turkopticon.differenceengines.com/"; var id = $("input[name=requesterId]").attr("value"); if (!id) { var src = $("[name=ExternalQuestionIFrame]").attr("src"); var rgx = new RegExp("requesterId=([^&]+?)&", "i"); var match = rgx.exec(src); if (match != null) { id = match[1]; } } document.getElementById('requester.tooltip').innerHTML = ' <a href="' + base + (id ? id : "main/search?query=" + $(document.getElementById("requester.tooltip")).parent().next().text().trim().replace(" ", "+") + "&commit=Search") + '">Requester:</a>'; }