HITs in Queue Link on MTurk Dashboard

Adds a link to your HITs queue onto your dashboard (both the new and old worker sites) on MTurk.

当前为 2017-10-06 提交的版本,查看 最新版本

// ==UserScript==
// @name         HITs in Queue Link on MTurk Dashboard
// @namespace    https://greasyfork.org/en/users/150063-trickydude24
// @description  Adds a link to your HITs queue onto your dashboard (both the new and old worker sites) on MTurk.
// @author       Trickydude24
// @version      1.2
// @match        https://worker.mturk.com/dashboard*
// @match        https://www.mturk.com/mturk/dashboard*
// @grant        none
// ==/UserScript==

if (/^https?:\/\/(www\.)?worker\.mturk\.com\/dashboard.*/.test(location.href)) {
$(".nav.navbar-nav.hidden-xs-down").append('<li class="nav-item"><a class="nav-link" href="https://worker.mturk.com/tasks">HITs Queue</a></li>');
}
else if (/^https?:\/\/(www\.)?mturk\.com\/mturk\/dashboard.*/.test(location.href)) {
var theDiv = document.getElementById('subtabs');
theDiv.innerHTML += '<span class="almostblack_text">&nbsp;|&nbsp;</span><a href="/mturk/myhits" class="subnavclass">HITs Queue</a>';
}