// ==UserScript==
// @name MTurk Worker Site Dark Theme [BETA]
// @namespace http://userstyles.org
// @description A dark theme to counter the bright white of the worker side of MTurk. Viewable on https://worker.mturk.com/ and any sub-pages, not the old MTurk site. This theme is currently incomplete and is in BETA.<br><br>
// @author Trickydude24
// @homepage https://userstyles.org/styles/149148
// @include https://worker.mturk.com/
// @include https://worker.mturk.com/projects*
// @include https://worker.mturk.com/dashboard*
// @include https://worker.mturk.com/tasks*
// @include https://worker.mturk.com/status*
// @include https://worker.mturk.com/?filters*
// @include https://worker.mturk.com/?page_number=*
// @include https://worker.mturk.com/earnings*
// @include https://worker.mturk.com/transfers*
// @include https://worker.mturk.com/?page_size*
// @include https://worker.mturk.com/account*
// @include https://worker.mturk.com/requesters/*
// @include https://worker.mturk.com/#*
// @include https://worker.mturk.com/contact*
// @include https://worker.mturk.com/?end_signin*
// @include https://worker.mturk.com/?sort=*
// @include https://www.mturk.com/worker*
// @include https://worker.mturk.com/qualifications*
// @include https://worker.mturk.com/?*
// @include https://worker.mturk.com/overwatch
// @include https://worker.mturk.com/status*
// @include https://worker.mturk.com/*
// @run-at document-start
// @version 0.20180511120321
// ==/UserScript==
(function() {var css = "";
if (false || (location.href.replace(location.hash,'') == "https://worker.mturk.com/") || (document.location.href.indexOf("https://worker.mturk.com/projects") == 0) || (document.location.href.indexOf("https://worker.mturk.com/dashboard") == 0) || (document.location.href.indexOf("https://worker.mturk.com/tasks") == 0) || (document.location.href.indexOf("https://worker.mturk.com/status") == 0) || (document.location.href.indexOf("https://worker.mturk.com/?filters") == 0) || (document.location.href.indexOf("https://worker.mturk.com/?page_number=") == 0) || (document.location.href.indexOf("https://worker.mturk.com/earnings") == 0) || (document.location.href.indexOf("https://worker.mturk.com/transfers") == 0) || (document.location.href.indexOf("https://worker.mturk.com/?page_size") == 0) || (document.location.href.indexOf("https://worker.mturk.com/account") == 0) || (document.location.href.indexOf("https://worker.mturk.com/requesters/") == 0) || (document.location.href.indexOf("https://worker.mturk.com/#") == 0) || (document.location.href.indexOf("https://worker.mturk.com/contact") == 0) || (document.location.href.indexOf("https://worker.mturk.com/?end_signin") == 0) || (document.location.href.indexOf("https://worker.mturk.com/?sort=") == 0) || (document.location.href.indexOf("https://www.mturk.com/worker") == 0) || (document.location.href.indexOf("https://worker.mturk.com/qualifications") == 0) || (document.location.href.indexOf("https://worker.mturk.com/?") == 0))
css += [
"/* Main Body */",
"body {background-color: #2d2d2d;}",
".me-bar {background-color: #272727;}",
".col-xs-7 {color: #d2d2d2;}",
".cols-sx-12 {background-color: red;}",
".copy-container .fa-copy {color: #F49800;}",
".sub-nav {border-bottom: 1px solid #4c4c4c;}",
".mturk-alert {color: #d2d2d2}",
".project-detail-bar {background-color: #272727;}",
".table-expand-collapse-button .button-text {color: #d2d2d2;}",
".sub-nav.hidden-xs-down {background-color: #272727;}",
"",
"/* Header Nav Bar */",
"h1, .h1, .primary-color, h2, .h2 {color: #DC8C1B;}",
".supportive-label {border-left: 1px solid #798ea3;}",
".masthead {background: #202020;}",
"",
"/* \"No Hits Accepted\" Text */",
".no-result-row {color: #d2d2d2;}",
"",
"/* Links */",
"a {color: #fff;}",
"a:hover {color: #F49800;}",
"a.show-visited:visited, a.visited {color: #737373;}",
".navbar-sub-nav .nav-item a {color: #d2d2d2;}",
".navbar-sub-nav .nav-item.active a {color: #d2d2d2; font-weight: bold;}",
"nav.mturk-pagination ul li.page-item.text-only span, nav.mturk-pagination ul li.page-item.text-only a {color: #d2d2d2;}",
"nav.mturk-pagination ul li.page-item.text-only span, nav.mturk-pagination ul li.page-item.text-only a:hover {color: #F49800;}",
"a.show-visited:visited, a.visited {color: #fff;}",
"a.show-visited:hover {color: #F49800;}",
".nav-inline .nav-link.selected, .nav-inline .nav-link:hover {color: #F49800;}",
"li.nav-item>.nav-link:hover {color: #798ea3;}",
".navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {color: #F49800;}",
".navbar-dark .navbar-nav .open>.nav-link, .navbar-dark .navbar-nav .open>.nav-link:focus, .navbar-dark .navbar-nav .open>.nav-link:hover, .navbar-dark .navbar-nav .active>.nav-link, .navbar-dark .navbar-nav .active>.nav-link:focus, .navbar-dark .navbar-nav .active>.nav-link:hover, .navbar-dark .navbar-nav .nav-link.open, .navbar-dark .navbar-nav .nav-link.open:focus, .navbar-dark .navbar-nav .nav-link.open:hover, .navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link.active:focus, .navbar-dark .navbar-nav .nav-link.active:hover {color: #F49800;}",
".back-link:hover, .back-link:focus {border-bottom: 1px solid #F49800; color: #F49800;}",
"",
"/* Page Navigation Buttons */",
"nav.mturk-pagination ul li.page-item.disabled.text-only span {background-color: transparent; padding: 10px;}",
"nav.mturk-pagination ul li.page-item.disabled span.btn {background-color: #2d2d2d; padding: 10px;}",
"nav.mturk-pagination .page-link {background-color: #2d2d2d; color: red; padding: 10px;}",
"nav.mturk-pagination ul li.page-item span, nav.mturk-pagination ul li.page-item a {color: #d2d2d2;}",
"nav.mturk-pagination ul li.page-item span, nav.mturk-pagination ul li.page-item a:hover {background-color: #F49800; border: 1px solid #2d2d2d; color: #2d2d2d;}",
"nav.mturk-pagination ul li.page-item.disabled span.btn {border: 1px solid #F49800; color: #F49800;}",
"",
"/* Column Headers */",
".column-header, table.mturk-table th {background-image: none; background-color: #272727; border: 0; color: #d2d2d2;}",
".column-header.sorted {background-image: none; background-color: #272727; border: 0; color: #d2d2d2;}",
".column-header.sorted .fa-caret-up, .column-header.sorted .fa-caret-down {color: #FABA70; font-weight: bold;}",
"",
"/* Table Row Colors */",
".table-row, .mturk-table {color: #d2d2d2;}",
".table-row {color: #d2d2d2;}",
".table-row:hover {background-color: #525252;}",
".table-row .expanded-row {background-color: #525252; color: #d2d2d2;}",
".table-row:hover, .table-row.expanded {background-color: #525252;}",
"ol.table-frame>li {border-bottom: 1px solid #4c4c4c;}",
"table.mturk-table tr:hover td {background-image: none; background: #525252; color: #d2d2d2;}",
"table.mturk-table tr td {border-bottom: 1px solid #4c4c4c;}",
"",
"/* Unqualified HITs Table Row Colors */",
".hit-set-table-row.user-not-qualified {background-color: #202020;}",
".hit-set-table-row.user-not-qualified:hover {background-color: #252e37;}",
".hit-set-table-row.user-not-qualified:hover, .hit-set-table-row.user-not-qualified.expanded {background-color: #525252;}",
".hit-set-table-row.table-row.expandable.user-not-qualified.expanded>.p-b-sm.expanded-row {background: #525252;}",
".qualifications-list .qualification-row:nth-child(odd){background: #464646; border:1px solid #3d3d3d;}",
".qualifications-list .qualification-row:nth-child(even){background: none;}",
".hit-set-table-row.table-row.expandable.user-not-qualified {color: #606060;}",
".hit-set-table-row.table-row.expandable.user-not-qualified a.show-visited {color: #909090 !important;}",
"",
"/* Dashboard Earnings Column */",
".col-xs-12.col-md-4.col-md-push-8 {background-color: #282828; padding: 15px;}",
"hr {border-top: 1px solid #4c4c4c;}",
".col-xs-5.col-sm-6.col-lg-5.text-xs-right {color: yellow;}",
".row>.col-xs-12>.border-gray-lightest.p-a-sm>.row.m-b-sm>.col-xs-5.text-xs-right {color: #d2d2d2;}",
".row>.col-xs-12>.border-gray-lightest.p-a-sm>.row.m-b-sm>.col-xs-8 {color: #d2d2d2;}",
".row>.col-xs-12>.border-gray-lightest.p-a-sm>.row.m-b-sm>.col-xs-4.text-xs-right {color: #d2d2d2;}",
"",
"/* Accept & Work Buttons */",
".accept-qualify-container a.btn.work-btn {background-color: #2d2d2d; border: 1px solid #F49800; color: #d2d2d2;}",
".accept-qualify-container a.btn.work-btn:hover {background-color: #F49800; border: 1px solid #2d2d2d; color: #2d2d2d;}",
".accept-qualify-container a.btn.work-btn:visited {background-color: #2d2d2d; border: 1px solid #F49800; color: #d2d2d2;}",
".hit-set-table-row:hover .accept-qualify-container a.btn.work-btn:visited {background-color: #F49800; border: 1px solid #2d2d2d; color: #2d2d2d;}",
"",
"/* Primary Button (Transfer Earnings, Apply, Accept, Get Time, Work, etc.) */",
".btn-primary {background-color: #2d2d2d; border: 1px solid #F49800; color: #d2d2d2;}",
".btn-primary:hover {background-color: #F49800; border: 1px solid #2d2d2d; color: #2d2d2d;}",
"",
"/* Secondary Button (Skip, Cancel, Dropdown boxes, etc.) */",
".btn-secondary, select.form-control {background-color: #2d2d2d; border: 1px solid #888; color: #d2d2d2;}",
".btn-secondary:hover, select.form-control:hover {background-color: #BBB; border: 1px solid #2d2d2d; color: #2d2d2d;}",
"",
"/* Qualifications in HIT Details */",
"ol.qualifications-list li:nth-child(odd), ol.qualifications-list li:nth-child(even) {background-color: #3d3d3d;}",
"",
".project-detail-bar .detail-bar-label, .project-detail-bar .detail-bar-value {color: #d2d2d2;}",
"",
"/* HIT Details Box */",
".modal-body.project-details.no-footer {color: #d2d2d2;}",
"",
"/* Search Box */",
".mturk-searchbox .search-input {background-color: #2d2d2d; color: #d2d2d2; border: 0px dashed #d2d2d2;}",
"/* Search Button */",
".input-group {background-color: #2d2d2d; border: 1px dotted #292929; color: #d2d2d2;}",
".mturk-searchbox .search-button-holder {background-color: #2d2d2d; border: 0px dashed #d2d2d2; color: #d2d2d2;}",
".searchbox-form .search-icon-svg .outer-ring {fill: #d2d2d2;}",
".mturk-searchbox .search-button-holder:hover .searchbox-form .search-icon-svg .outer-ring:hover {fill: #2d2d2d;}",
"",
"/* Filter Box */",
".modal-header {background-color: #2d2d2d;}",
".modal-title {color: #d2d2d2;}",
".modal-body {background-color: #2d2d2d;}",
".modal-open .modal-footer {background-color: #2d2d2d;}",
".form-control {background-color: #2d2d2d; color: #d2d2d2;}",
"",
"/* Captcha Section */",
".captcha-row {background-image: none;}",
"",
"/* Report Box */",
".report-task-popup {background-color: #2d2d2d;}",
".why-report-content {color: #d2d2d2;}",
".report-task-container i.fa {color: #d2d2d2;}",
"",
"/* Qualification Test */",
"#hit-wrapper {background-color: #272727;}",
".qap-container {border: 1px solid #474747;}",
".qap-container #hit-wrapper textarea {color: #000;}",
"",
"/* Dashboard Tweaks */",
".border-gray-lightest {border: 1px solid #4c4c4c;} ",
".h6.text-muted {color: #d2d2d2;}",
"",
"/* Footer */",
"footer, #footer {background: #272727;}",
"",
"/* Earnings Page */",
".transfers .transfer-form .amount {background-color: #2d2d2d; color: #d2d2d2; border:1px solid #ccc;}",
"",
"/* Contact Page */",
"#MainContent {color: #d2d2d2;}"
].join("\n");
if (false || (location.href.replace(location.hash,'') == "https://worker.mturk.com/overwatch"))
css += [
"/* Excludes Overwatch script from taking the above styles. Values below are Overwatch\'s defaults. ",
"body {background-color: rgb(55,59,68); color: black;}",
"a {color: #146EB4;} */"
].join("\n");
if (false || (document.location.href.indexOf("https://worker.mturk.com/status") == 0))
css += [
"/* Theme fixes for Service Health page */",
"body {color: #d2d2d2;}",
".shdb {background-color: #2d2d2d;}",
".shdb hr {background-color: #2d2d2d; border-top: 3px solid #4b4b4b;}",
"img[src*=\"logo.png\"] {display: none;}",
".shdb h1.service-health-dashboard-title {color: #F49800; margin: 0px;}",
"",
"/* Links */",
".shdb a {color: #F49800; text-decoration: none;}",
".shdb a:hover {color: #d2d2d2; text-decoration: underline;}",
".shdb a:visited {color: #F49800; text-decoration: none;}",
" ",
"/* Tables */",
".table-outer-shell {background-image: none; background-color: #272727; border: 1px solid #4b4b4b; padding: 0px;}",
".table-outer-shell .table-inner-shell {background-color: #2d2d2d; border: 0px;}",
".table-outer-shell table {background-color: #2d2d2d;}",
".table-outer-shell table th {background-image: none; background-color: #272727; color: #d2d2d2; border-bottom: 1px solid #363636;}",
".table-outer-shell table th, .table-outer-shell table td {border-bottom: 1px solid #363636;}",
"",
".key-legend {border: 1px dashed #4b4b4b; width: auto;}",
"",
".history-table {border: 0px;}",
"/* WIP - Will need image replacement here",
".history-table .nav-button {background-image: none;}",
".history-table .nav-button .btn.left-btn.disabled {background-image: none;}",
".history-table .nav-button .btn.right-btn {background-image: none;} */",
"",
".service-name {background-image: none; background-color: #272727; color: #d2d2d2; border: 0px;}",
"",
".dates ul li {background-image: none; background-color: #272727; color: #d2d2d2; border: 0px;}",
".blank-square {background-image: none; background-color: #272727; border: 0px;}",
"",
"/* Additional Information Box */",
".additional-information-popup {background: #2d2d2d; color: #d2d2d2;}",
".status-more-details .date {color: #F49800;}",
".additional-information-popup .status-more-details {background: #2d2d2d; color: #d2d2d2;}"
].join("\n");
if (false || (document.location.href.indexOf("https://worker.mturk.com/") == 0))
css += [
"/* */",
"/* EXCLUSION SECTION */",
"/* */",
"",
"/* Excludes MTurk Suite TO extension from taking the above styles. */",
"mts-tr {color: #606060;}",
"mts-td>a, mts-td>a:hover, mts-td>a:visited {color: #0c446f;}",
"",
"/* Excludes Turkerview Color Clashes */",
".tv-td a {color: #146EB4;}",
".turkerview.tv-tooltip.tv-export {color: #d2d2d2 !important;}",
".container>.col-xs-4, .popover {color: #2d2d2d;}"
].join("\n");
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
addStyle(css);
} else {
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
heads[0].appendChild(node);
} else {
// no head yet, stick it whereever
document.documentElement.appendChild(node);
}
}
})();