// ==UserScript== // @name mmmturkeybacon Enhanced HIT Information Capsule // @author mmmturkeybacon // @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. // *If the requesterId can't be found, the link will // be to the Turkopticon search results for the requester // name and the contact link will be missing the requesterId // so it must be added by hand to the end of the contact URL. // @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 http://code.jquery.com/jquery-latest.min.js // @version 1.1 // @grant none // @downloadURL none // ==/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 isAccepted = $('input[type="hidden"][name="isAccepted"]').val(); if (isAccepted == 'false') { var requesterId = $('input[type="hidden"][name="requesterId"]').val(); } else { // 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) { var requesterId = $return_URL.attr('href').split(/[&=]/)[3]; } } /* * Before a HIT is accepted - accept hitId, hitReview hitId, and assignmentId are all the same.