Unique URL Scripts for Mturk

generates header and unique url for mturk userscripts

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
DCI
일일 설치수
0
총 설치수
58
평점
0 0 0
버전
1.2
생성
2017-12-24
갱신
2017-12-24
라이선스
없음
동작 사이트

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.