Unique URL Scripts for Mturk

generates header and unique url for mturk userscripts

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

Maker
DCI
Dagelijks aantal installaties
0
Totaal aantal installaties
58
Beoordelingen
0 0 0
Versie
1.2
Gemaakt op
24-12-2017
Bijgewerkt op
24-12-2017
Grootte
3,46 KB
Licentie
N.v.t.
Wordt toegepast op

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.