[MTURK] Queue Header Link

Adds a link to your HITs queue into the MTurk header, on both www and worker.

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

// ==UserScript==
// @name         [MTURK] Queue Header Link
// @namespace    https://greasyfork.org/en/users/150063-trickydude24
// @description  Adds a link to your HITs queue into the MTurk header, on both www and worker.
// @author       Trickydude24
// @version      1.3.1
// @match        https://worker.mturk.com/*
// @match        https://www.mturk.com/mturk/dashboard*
// @grant        none
// ==/UserScript==

if (/^https?:\/\/(www\.)?worker\.mturk\.com\/.*/.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>';
}