Greasy Fork is available in English.

Unique URL Scripts for Mturk

generates header and unique url for mturk userscripts

المؤلف
DCI
التثبيت اليومي
0
إجمالي التثبيت
44
التقييمات
0 0 0
الإصدار
1.2
تم إنشاؤه
تم تحديثه
الترخيص
لا يوجد
ينطبق على

وصف المؤلف

Most mturk HITs are hosted either on s3.amazonaws.com or mturkcontent.com. This leads to many userscripts being active at the same time, which makes a lot of clutter and can also cause accidents. This script creates headers for userscripts that will only activate on the HITs that they are intended for, eliminating the need for activation filters or script deactivation.

To use this script, first edit the user details section at the top of the script to your own preferences. To generate a header for a HIT, open the "HIT Details" pop up for that HIT and click the "Copy HIT Data to Clipboard" button. The header will look like this:


// ==UserScript==
// @name Michele Merler - Facial Attributes Annotation - 0.10
// @description I'm so fancy.
// @version 1.0
// @author DCI
// @namespace www.redpandanetework.org
// @icon http://i.imgur.com/ZITD8b1.jpg
// @include https://worker.mturk.com/projects/354DQCRRIJQ7OFF4O1W52N6RP01LS4*
// @include https://s3.amazonaws.com/*354DQCRRIJQ7OFF4O1W52N6RP01LS4*
// @timer 60 Min
// @frameurl https://s3.amazonaws.com/mturk_bulk/hits/295723455/KbrRiUeqgPFXJtb8flRwiw.html?assignmentId=ASSIGNMENT_ID_NOT_AVAILABLE&hitId=38VTL6WC4A4ODCQGDFYCS1E8HZ4Y56
// @grant GM_setClipboard
// @grant GM_openInTab
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
// @grant GM_xmlhttpRequest
// @require http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==

if (~window.location.toString().indexOf("https://worker.mturk.com/projects/")){
var groupId = window.location.toString().split("/")[4].split("/")[0];
document.getElementsByTagName("iframe")[0].src = document.getElementsByTagName("iframe")[0].src + "&groupId=" + groupId;
}

else {









}


Place the code for your HIT inside of the else statement.

There are some additional lines of HIT information and grants in the header for convenience.