Unique URL Scripts for Mturk

generates header and unique url for mturk userscripts

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
DCI
Dziennych instalacji
0
Wszystkich instalacji
58
Oceny
0 0 0
Wersja
1.2
Utworzono
24-12-2017
Zaktualizowano
24-12-2017
Rozmiar
3,46 KB
Licencja
Brak licencji
Dotyczy

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.