Unique URL Scripts for Mturk

generates header and unique url for mturk userscripts

目前為 2017-12-24 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
DCI
評價
0 0 0
版本
1.0
建立日期
2017-12-24
更新日期
2017-12-24
尺寸
3.4 KB
授權條款
未知
腳本執行於

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 code inside of the else statement.

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