// ==UserScript== // @name mmmturkeybacon Enhanced HIT Information Capsule (Shows Automatic Approval Time) // @version 1.27 // @description Changes the requester name to a link that searches mturk for HITs by the requester. Adds a link to the average Turkopticon ratings for that requester. Adds a contact link for the requester. Displays hitAutoAppDelayInSeconds in a human readable format. // @author mmmturkeybacon // @namespace http://userscripts.org/users/523367 // @match https://www.mturk.com/mturk/accept* // @match https://www.mturk.com/mturk/preview* // @match https://www.mturk.com/mturk/continue* // @match https://www.mturk.com/mturk/submit // @match https://www.mturk.com/mturk/return* // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js // @grant GM_log // @downloadURL https://update.greasyfork.icu/scripts/3114/mmmturkeybacon%20Enhanced%20HIT%20Information%20Capsule%20%28Shows%20Automatic%20Approval%20Time%29.user.js // @updateURL https://update.greasyfork.icu/scripts/3114/mmmturkeybacon%20Enhanced%20HIT%20Information%20Capsule%20%28Shows%20Automatic%20Approval%20Time%29.meta.js // ==/UserScript== // API http://api.turkopticon.istrack.in/multi-attrs.php?ids= //var base = 'http://turkopticon.istrack.in'; // mirror var base_TO_URL = 'http://turkopticon.ucsd.edu/'; var base_searchbar_URL = 'https://www.mturk.com/mturk/searchbar?selectedSearchType=hitgroups'; var requesterId = $('input[type="hidden"][name="requesterId"]').val(); if (!requesterId) { // Continued HITs don't have the requesterId in a hidden input or // the return URL. We could search the iframe src URL for the // requesterId but it might not be there either, so it's not worth // the extra processing time required. // try to get requesterId from return URL var $return_URL = $('a[href^="/mturk/return?groupId="]'); if ($return_URL.length > 0) { requesterId = $return_URL.attr('href').split(/[&=]/)[3]; } } /* * Before a HIT is accepted - accept hitId, hitReview hitId, and assignmentId are all the same.