mTurk Dark Theme

Changes mTurk to a dark theme.

// ==UserScript==
// @name         mTurk Dark Theme
// @namespace    http://kadauchi.com/
// @homepage     https://userstyles.org/styles/127483
// @version      1.3.1
// @description  Changes mTurk to a dark theme.
// @author       Kadauchi
// @icon         http://kadauchi.com/avatar.jpg
// @match      https://www.mturk.com/*
// @grant        GM_log
// ==/UserScript==

(function() {var css = "";
if (false || (new RegExp("^https:\\/\\/www.mturk.com\\/mturk\\/((?!hit_scraper).)*$")).test(document.location.href))
	css += [
		"/***********************/",
		"/****** All pages ******/",
		"/***********************/",
		"",
		"/****** Styling ******/",
		"html,",
		"html > body",
		"{",
		"    color            : #FFFFFF;",
		"    background-color : #000000;    ",
		"}",
		"",
		"#subtabs_and_searchbar ",
		"{",
		"    border           : #FFFFFF 1px solid !important;",
		"    background-color : #0D0D0D           !important;",
		"    background-image : none              !important;",
		"}",
		"",
		"#hit-wrapper *",
		"{",
		"    color : #000000;",
		"}",
		"",
		"#hit-wrapper a:link",
		"{",
		"    color : blue;",
		"}",
		"",
		"#hit-wrapper a:visited",
		"{",
		"    color : purple;",
		"}",
		"",
		"#whyHITReport,",
		"#reportHITForm",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		".footer_separator ",
		"{",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		".title_orange_text,",
		".title_orange_text_bold,",
		"b[style=\"display:block;color:#CC6600\"],",
		"span[style*=\"color:#CC6600\"]",
		"{",
		"    color : #336699 !important;",
		"}",
		"",
		".capsule_field_title > a",
		"{",
		"    color : #336699;",
		"}",
		"",
		".tooltip {",
		"    color            : #336699;",
		"    background-color : #0D0D0D;",
		"    border-color     : #FFFFFF;",
		"}",
		"",
		"select,",
		"option",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #1A1A1A !important;",
		"}",
		"",
		".MsoNormal,",
		".MsoNormal > *",
		"{",
		"    color            : #FFFFFF !important;",
		"}",
		"",
		"/* Not sure if working for http://www.mturkgrind.com/posts/1001517/ */",
		".externalSubmit *",
		"{",
		"    color            : #000000 !important;",
		"}",
		"",
		"",
		"/****** Changes link colors ******/",
		":not(.capsule_field_title) > a:link:not(.capsulelink),",
		"#subtabs_and_searchbar > #subtabs > a:link",
		"{",
		"    color : #9BAED2;",
		"}",
		"",
		":not(.capsule_field_title) > a:visited:not(.capsulelink),",
		"#subtabs_and_searchbar > #subtabs > a:visited",
		"{",
		"    color : #B8A7C3;",
		"}",
		"",
		":not(.capsule_field_title) > a:hover:not(.capsulelink),",
		"#subtabs_and_searchbar > #subtabs > a:hover",
		"{",
		"    color : hotpink !important;",
		"}",
		"",
		":not(.capsule_field_title) > a:active:not(.capsulelink),",
		"#subtabs_and_searchbar > #subtabs > a:active",
		"{",
		"    color : blue;",
		"}",
		"",
		"",
		"font[color=\"#000080\"]",
		"{",
		"    color : #9BAED2 !important;",
		"}",
		"",
		"font[color=\"#000080\"]:hover",
		"{",
		"    color : hotpink !important;",
		"}",
		"",
		"/* Replace Inactive HITs Image */",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/nav_hits_inactive.gif\"]",
		"{",
		"    height       : 0;",
		"    width        : 0;",
		"    border       : 0;",
		"    padding-left : 89px                                          !important;",
		"    padding-top  : 32px                                          !important;",
		"    background   : url(http://i.imgur.com/yVfbmzX.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Active HITs Image */",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/nav_hits_active_teal.gif\"]",
		"{",
		"    height       : 0;",
		"    width        : 0;",
		"    border       : 0;",
		"    padding-left : 89px                                          !important;",
		"    padding-top  : 32px                                          !important;",
		"    background   : url(http://i.imgur.com/h2Z2yCP.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Inactive Dashboard Image */",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/nav_youraccount_inactive.gif\"]",
		"{",
		"    height       : 0;",
		"    width        : 0;",
		"    border       : 0;",
		"    padding-left : 114px                                         !important;",
		"    padding-top  : 32px                                          !important;",
		"    background   : url(http://i.imgur.com/3SdK494.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Active Dashboard Image */",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/nav_youraccount_active.gif\"]",
		"{",
		"    height       : 0;",
		"    width        : 0;",
		"    border       : 0;",
		"    padding-left : 114px                                         !important;",
		"    padding-top  : 32px                                          !important;",
		"    background   : url(http://i.imgur.com/SB6IXnz.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Inactive Qualification Image */",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/nav_quals_inactive.gif\"]",
		"{",
		"    height       : 0;",
		"    width        : 0;",
		"    border       : 0;",
		"    padding-left : 114px                                         !important;",
		"    padding-top  : 32px                                          !important;",
		"    background   : url(http://i.imgur.com/cHrGGGf.gif) no-repeat !important;",
		"}",
		"    ",
		"/* Replace Active Qualification Image */",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/nav_quals_active.gif\"]",
		"{",
		"    height       : 0;",
		"    width        : 0;",
		"    border       : 0;",
		"    padding-left : 114px                                         !important;",
		"    padding-top  : 32px                                          !important;",
		"    background   : url(http://i.imgur.com/WwhAoPp.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Go Image */",
		"input[src=\"https://images-na.ssl-images-amazon.com/images/G/01/buttons/go-orange-trans.gif\"],",
		"input[src=\"/media/go-button-gateway.gif\"]",
		"{",
		"    height       : 0;",
		"    width        : 0;",
		"    border       : 0;",
		"    padding-left : 21px                                          !important;",
		"    padding-top  : 21px                                          !important;",
		"    background   : url(http://i.imgur.com/jQIJDc3.png) no-repeat !important;",
		"}",
		"",
		"",
		"/* Replace Accept HIT Image */",
		"input[src=\"/media/accept_hit.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0;",
		"    margin-bottom : 4px;",
		"    padding-left  : 79px                                           !important;",
		"    padding-top   : 22px                                           !important;",
		"    background    : url(https://i.imgur.com/ecGi7kQ.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Skip HIT Image */",
		"img[src=\"/media/skip_hit.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0; ",
		"    margin-bottom : 4px;",
		"    padding-left  : 82px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/ZI4FvxD.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Return HIT Image */",
		"img[src=\"/media/return_hit.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0; ",
		"    margin-bottom : 4px;",
		"    padding-left  : 82px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/dsfsa0t.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Submit Image */",
		"input[src=\"/media/submit_hit.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0;",
		"    margin-bottom : 4px;",
		"    padding-left  : 82px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/MLUysNT.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Disabled Submit Image */",
		"img[src=\"/media/submit_hit_disabled.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0;",
		"    margin-bottom : 4px                                           !important;",
		"    padding-left  : 82px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/7h9cqz7.gif) no-repeat !important;",
		"}",
		"",
		"/* Replace Continue Image */",
		"#continueTransferButton,",
		"img[src=\"/media/continue.gif\"],",
		"input[src=\"/media/continue.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0;",
		"    margin-bottom : 4px;",
		"    padding-left  : 82px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/ak2fZaH.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Left Double Image */",
		"img[src=\"/media/left_dbl_arrow.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0;",
		"    padding-left  : 16px                                          !important;",
		"    padding-top   : 11px                                          !important;",
		"    background    : url(http://i.imgur.com/P6qZax2.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Left Single Image */",
		"img[src=\"/media/left_arrow.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0;",
		"    padding-left  : 16px                                          !important;",
		"    padding-top   : 11px                                          !important;",
		"    background    : url(http://i.imgur.com/UNLhxfp.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Left Double Image */",
		"img[src=\"/media/right_dbl_arrow.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0;",
		"    padding-left  : 16px                                          !important;",
		"    padding-top   : 11px                                          !important;",
		"    background    : url(http://i.imgur.com/jnmxjA3.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Left Single Image */",
		"img[src=\"/media/right_arrow.gif\"]",
		"{",
		"    height        : 0;",
		"    width         : 0;",
		"    border        : 0;",
		"    padding-left  : 16px                                          !important;",
		"    padding-top   : 11px                                          !important;",
		"    background    : url(http://i.imgur.com/PWz1wLa.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Non-HIt Submit Image */",
		"input[src=\"/media/submit.gif\"]",
		"{",
		"    width         : 0;",
		"    height        : 0;",
		"    border        : 0;",
		"    padding-left  : 61px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/ztrnqPr.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Yes Image */",
		"input[src=\"/media/yes.gif\"]",
		"{",
		"    width         : 0;",
		"    height        : 0;",
		"    border        : 0;",
		"    padding-left  : 40px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/pcnmC71.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Yes Image */",
		"input[src=\"/media/no.gif\"]",
		"{",
		"    width         : 0;",
		"    height        : 0;",
		"    border        : 0;",
		"    padding-left  : 40px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/vMW7ji9.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Confirm Transfer Image */",
		"input[src=\"/media/confirm_transfer.png\"]",
		"{",
		"    width         : 0;",
		"    height        : 0;",
		"    border        : 0;",
		"    padding-left  : 117px                                          !important;",
		"    padding-top   : 27px                                          !important;",
		"    background    : url(http://i.imgur.com/R74oHyt.png) no-repeat !important;",
		"}",
		"",
		"/* Replace Cancel Image */",
		"img[src=\"/media/cancel-secondary.png\"]",
		"{",
		"    width         : 0;",
		"    height        : 0;",
		"    border        : 0;",
		"    padding-left  : 56px                                          !important;",
		"    padding-top   : 22px                                          !important;",
		"    background    : url(http://i.imgur.com/DycCiCw.png) no-repeat !important;",
		"}",
		"",
		"",
		"/****** Hide Elements ******/",
		"img[src=\"/media/more.gif\"],",
		"img[src=\"/media/less.gif\"],",
		"img[src=\"/media/lb_left_corner_blue.gif\"],",
		"img[src=\"/media/lb_right_corner_blue.gif\"],",
		"img[src=\"/media/top_left_corner.gif\"],",
		"img[src=\"/media/bottom_left_corner.gif\"],",
		"img[src=\"/media/top_right_corner.gif\"],",
		"img[src=\"/media/bottom_right_corner.gif\"],",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/logoAI3.gif\"],",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/an_amazon_company-medium.gif\"]",
		"{",
		"    display : none;",
		"}"
	].join("\n");
if (false || (new RegExp("^https:\\/\\/www.mturk.com\\/mturk\\/((?!hit_scraper|dashboard|transferearnings|last_hits_previewed).)*$")).test(document.location.href))
	css += [
		"iframe ",
		"{",
		"    background-color : #BDBDBD !important;",
		"    border-color     : #FFFFFF !important;",
		"    border-radius    : 0px     !important;",
		"    border-style     : solid   !important;",
		"    border-width     : 1px     !important;",
		"}",
		"",
		"/* Strip Styling From HIT Capsules */",
		"#subtabs_and_searchbar:first-of-type + table td,  ",
		"#sortresults_form:first-of-type + table td,                                                               /* HIT capsules on HIT showing pages */",
		"div[style=\"width: auto; margin-top: 5px; margin-left: 10px; margin-right: 10px; margin-bottom: 5px;\"] td  /* HIT capsules with a HIT displayed */",
		"{",
		"    background-color : transparent ;",
		"    border           : 0           !important;",
		"}",
		"",
		"/* Qualified HIT capsules inside borders */",
		"td[style=\"border-radius:30px 0 0 0;border: 1px solid #336699;border-right: 0;border-bottom: 0;background: #CCDDE9;\"], /* Top Left      */",
		"td[style=\"border: 1px solid #336699;border-right: 0;border-bottom: 0;border-left: 0; background: #CCDDE9;\"],          /* Top           */",
		"td[style=\"border-radius:0 30px 0 0;border: 1px solid #336699;border-left: 0;border-bottom: 0;background: #CCDDE9;\"],  /* Top Right     */",
		"td[style=\"border: 1px solid #336699;border-right: 0;border-bottom: 0;border-top: 0; background: #F0F6F9;\"],           /* Left          */",
		"td[style=\"border: 1px solid #336699;border-left: 0;border-bottom: 0;border-top: 0; background: #F0F6F9;\"],            /* Right         */",
		"td[style=\"border-radius: 0 0 0 30px;border: 1px solid #336699;border-right: 0;border-top: 0;background: #F0F6F9;\"],   /* Bottom Left   */",
		"td[align=\"center\"][valign=\"top\"][bgcolor=\"#F0F6F9\"][height=\"9\"][width=\"100%\"],                                        /* Bottom        */",
		"td[style=\"border: 1px solid #336699;border-right: 0;border-left: 0;border-top: 0; background: #F0F6F9;\"],             /* Bottom Bottom */",
		"td[style=\"border-radius: 0 0 30px 0;border: 1px solid #336699;border-left: 0;border-top: 0;background: #F0F6F9;\"]     /* Bottom Right  */",
		"{",
		"    background-color : transparent !important;",
		"    border           : 0           !important;",
		"}",
		"",
		"/* Non-Qualified HIT capsule borders */",
		"td[style=\"border-radius:30px 0 0 0;border: 1px solid #336699;border-right: 0;border-bottom: 0;background: #CCCCCC;\"], /* Top Left      */",
		"td[style=\"border: 1px solid #336699;border-right: 0;border-bottom: 0;border-left: 0; background: #CCCCCC;\"],          /* Top           */",
		"td[style=\"border-radius:0 30px 0 0;border: 1px solid #336699;border-left: 0;border-bottom: 0;background: #CCCCCC;\"],  /* Top Right     */",
		"td[style=\"border: 1px solid #336699;border-right: 0;border-bottom: 0;border-top: 0; background: #F1F3EB;\"],           /* Left          */",
		"td[style=\"border: 1px solid #336699;border-left: 0;border-bottom: 0;border-top: 0; background: #F1F3EB;\"],            /* Right         */",
		"td[style=\"border-radius: 0 0 0 30px;border: 1px solid #336699;border-right: 0;border-top: 0;background: #F1F3EB;\"],   /* Bottom Left   */",
		"td[align=\"center\"][valign=\"top\"][bgcolor=\"#F1F3EB\"][height=\"9\"][width=\"100%\"],                                        /* Bottom        */",
		"td[style=\"border: 1px solid #336699;border-right: 0;border-left: 0;border-top: 0; background: #F1F3EB;\"],             /* Bottom Bottom */",
		"td[style=\"border-radius: 0 0 30px 0;border: 1px solid #336699;border-left: 0;border-top: 0;background: #F1F3EB;\"]     /* Bottom Right  */",
		"{",
		"    background-color : #0D0D0D !important;",
		"    border           : 0       !important;",
		"    opacity          : .35      !important;",
		"}",
		"",
		"/* Non-Qualified HIT capsule backgrounds */",
		"td[style=\"border: 1px solid #336699;border-right: 0;border-bottom: 0;border-top: 0; background: #F1F3EB;\"],",
		"td[bgcolor=\"#F1F3EB\"],",
		"td[bgcolor=\"#CCCCCC\"]",
		"{",
		"   background-color : #0D0D0D !important;",
		"   opacity          : .35      !important;",
		"}",
		"",
		"",
		"/* Add Styling From HIT Capsules */",
		"#sortresults_form:first-of-type + table > tbody > tr > td,                                                           /* HIT capsules on HIT showing pages */",
		"div[style=\"width: auto; margin-top: 5px; margin-left: 10px; margin-right: 10px; margin-bottom: 5px;\"] > div > table  /* HIT capsules with a HIT displayed */",
		"{",
		"    background-color : #0D0D0D !important;",
		"    border-color     : #FFFFFF !important;",
		"    border-radius    : 0px     !important;",
		"    border-style     : solid   !important;",
		"    border-width     : 1px     !important;",
		"}",
		"",
		"",
		"td.capsule_field_text,",
		".capsulelink_bold,",
		"a[name=\"autoAcceptCheckboxWrapper\"],",
		"td[align=\"center\"][nowrap] ",
		"{",
		"    color : #FFFFFF !important;",
		"}",
		"",
		"span[style=\"font-size: 11px; margin:0 10px; width: 80px; white-space:nowrap;float:left;\"], ",
		"span.capsule_black_text, ",
		"span[style=\"padding: 0 2em\"], ",
		"span.capsulelink,",
		"td[style=\"vertical-align: bottom; text-align: right; padding-left: 10px; padding-right: 25px;\"],",
		"div[style=\"display: table-cell; white-space: normal;\"],",
		"td.capsule_field_title:first-of-type + td[width=\"100%\"]",
		"{",
		"    color : #FFFFFF !important;",
		"}",
		"",
		"a.capsulelink ",
		"{",
		"    color : #FFFFFF !important;",
		"}",
		"",
		"/* TM Restyling */",
		"div.watcher_button > a ",
		"{",
		"    color : #000000 !important;",
		"}",
		"",
		"/* Great HIT Export and CH Block Using HIT Scraper\'s Blocklist */",
		"a.capsulelink ~ button",
		"{",
		"    color        : #336699 !important;",
		"    border-width : 2px     !important;",
		"    font-size    : 8px     !important;",
		"    font-weight  : bolder  !important;",
		"    height       : 14px    !important;",
		"     ",
		"}",
		"",
		"#edit_button,",
		"#save_button,",
		"#default_button,",
		"#easy_button",
		"{",
		"    font             : bold 12px verdana, arial, sans-serif;",
		"    color            : #336699 !important;",
		"    background-color : #1A1A1A !important;",
		"    border-color     : #262626 !important;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("https://www.mturk.com/mturk/dashboard") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/status") == 0))
	css += [
		"/***********************/",
		"/****** Dashboard ******/",
		"/***********************/",
		"",
		"body > table:not([border=\"0\"]) > tbody > tr > td,",
		"body > #content_container > table[cellspacing=\"0\"] > tbody > tr > td  /* TM */",
		"{",
		"    background-color : #0D0D0D;",
		"    background-image : none;",
		"}",
		"",
		"body > table > tbody > tr,",
		"body > #content_container > table > tbody > tr /* TM */",
		"{",
		"    border-color     : #FFFFFF;",
		"    border-width     : 1px;",
		"    border-style     : solid;    ",
		"}",
		"",
		"tr.grayHead,",
		"tr.metrics-table-header-row",
		"{",
		"    background-color : #1A1A1A;",
		"}",
		"",
		"tr.grayHead ~ tr.odd:nth-child(odd),",
		"tr.grayHead ~ tr.even:nth-child(odd),",
		"tr.metrics-table-header-row ~ tr.odd:nth-child(odd),",
		"tr.metrics-table-header-row ~ tr.even:nth-child(odd),",
		"tr.metrics-table-header-row ~ div.odd:nth-child(odd),  /* Mturk Dashboard */",
		"tr.metrics-table-header-row ~ div.even:nth-child(odd)  /* Mturk Dashboard */",
		"{",
		"    background-color: #1A1A1A;",
		"}",
		"",
		"tr.grayHead ~ tr.even:nth-child(even),",
		"tr.grayHead ~ tr.odd:nth-child(even),",
		"tr.metrics-table-header-row ~ tr.odd:nth-child(even),",
		"tr.metrics-table-header-row ~ tr.even:nth-child(even),",
		"tr.metrics-table-header-row ~ div.odd:nth-child(even),   /* Mturk Dashboard  */",
		"tr.metrics-table-header-row ~ div.even:nth-child(even),  /* Mturk Dashboard  */",
		"tr.metrics-table-header-row + tr > td                    /* MTurk QualSorter */",
		"{",
		"    background-color : #262626;",
		"}",
		"",
		"tr.odd > td,",
		"tr.even > td,",
		"div.odd > td,",
		"div.even > td,",
		"table[style=\"padding-top: 10px\"] > tbody > tr td",
		"{",
		"    color : #FFFFFF ;   ",
		"}",
		"",
		"span#lnk_show_earnings_details,",
		"span#lnk_hide_earnings_details,",
		"span[style=\"color:blue;font-family:arial;font-size:10px;\"],  /* MTurk HIT Database Mk.II */",
		"span[style=\"color: blue; font-size: 10px; cursor: pointer; float: right;\"]  /* Mturk Dashboard */",
		"{",
		"    color : #9BAED2 !important;",
		"}",
		"",
		"/****** MTurk HIT Database Mk.II ******/",
		"meter::-webkit-meter-optimum-value",
		"{",
		"    background: #336699 !important;",
		"}",
		"",
		"table#hdbControlPanel > tbody > tr[height=\"25px\"] > td",
		"{",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"label",
		"{",
		"   color : #FFFFFF !important;    ",
		"}",
		"",
		"button ",
		"{",
		"    font             : bold 12px verdana, arial, sans-serif;",
		"    color            : #336699 !important;",
		"    background-color : #1A1A1A !important;",
		"    border-color     : #262626 !important;",
		"}",
		"",
		"tr.hdbHeaderRow,",
		"tr.hdbTotalsRow",
		"{",
		"    color            : #336699 !important; ",
		"    background-color : #1A1A1A !important;",
		"}",
		"",
		"",
		"table#hdbResultsTable > tbody > tr > td",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #262626 !important;",
		"    border-color     : #0D0D0D !important;",
		"    border-style     : solid   !important;",
		"    border-width     : 1px     !important;",
		"}",
		"",
		"span.hdbResControl,",
		"span.hdbExpandRow,",
		"span.hdbResControl,",
		"span.helpSpan",
		"{",
		"    color : #9BAED2 !important;",
		"}",
		"",
		"/****** MTurk HIT Database Mk.II ******/",
		"/* Firefox */",
		"#hdbCalendarPanel > *",
		"{",
		"    color : #000000 !important;",
		"}",
		"",
		"/****** Mturk Dashboard ******/",
		"/*****************************/",
		"",
		"/* Progress bar border */",
		"div#progressbar  ",
		"{",
		"    border-color : #336699 !important;",
		"}",
		"",
		"/* Progress bar background */",
		"div#progress",
		"{",
		"    background-color : #336699 !important;",
		"}",
		"",
		"/****** mmmturkeybacon Seven Days Dashboard and Weekly Total ******/",
		"/******************************************************************/",
		".reward > img",
		"{",
		"    display : none;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("https://www.mturk.com/mturk/viewhits?last_hits_previewed") == 0))
	css += [
		"/* Hide Elements */",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/logoAI3.gif\"],                   /* top left \"amazonmechanicalturk\" image  */",
		"img[src=\"https://images-na.ssl-images-amazon.com/images/G/01/webservices/mechanical-turk/an_amazon_company-medium.gif\"],  /* bottom right \"an amazon company\" image */",
		"img[src=\"/media/top_left_corner.gif\"],      /* top left corner HIT capsule image     */",
		"img[src=\"/media/bottom_left_corner.gif\"],   /* bottom left corner HIT capsule image  */",
		"img[src=\"/media/top_right_corner.gif\"],     /* top right corner HIT capsule image    */",
		"img[src=\"/media/bottom_right_corner.gif\"]  /* bottom right corner HIT capsule image */",
		"{",
		"    display : none !important;",
		"}",
		"",
		"center,",
		"a.capsulelink,",
		"td.capsule_field_text,",
		"table[cellspacing=\"5\"] > tbody > tr:first-child,",
		"td[style=\"padding-right: 2em; white-space: nowrap;\"]",
		"{",
		"    color : #FFFFFF !important;",
		"}",
		"",
		"td ",
		"{",
		"    background-color : transparent ;",
		"    border           : 0           !important;",
		"}",
		"",
		"tbody {",
		"    background-color : #1D1D1D !important;",
		"    border-color     : #FFFFFF !important;",
		"    border-radius    : 0px     !important;",
		"    border-style     : solid   !important;",
		"    border-width     : 1px     !important;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("https://www.mturk.com/mturk/") == 0))
	css += [
		"/****************/",
		"/****** TM ******/",
		"/****************/",
		"",
		"div#dispatcher",
		"{",
		"    background-color : #000000 !important;",
		"}",
		"",
		"a.name,",
		"div#controller",
		"{",
		"    color : #336699 !important;",
		"    font-weight: bold !important;",
		"}",
		"",
		"#dispatcher .watcher .details ",
		"{",
		"    background-color: #262626 !important;",
		"}",
		"",
		"#dispatcher .watcher.running .details",
		"{",
		"    background-color: #333333 !important;",
		"}",
		"",
		"#dispatcher .watcher.updated",
		"{",
		"    background-color: #666666 !important;",
		"}",
		"",
		"#dispatcher .watcher .details.updated",
		"{",
		"    background-color: #336699 !important;",
		"}",
		"",
		"div.watcher",
		"{",
		"    background-color : #0D0D0D !important;",
		"    border-color     : #FFFFFF !important;",
		"    border-radius    : 0px     !important;",
		"    border-style     : solid   !important;",
		"    border-width     : 1px     !important;",
		"}",
		"",
		"span.time, ",
		"div.last_updated",
		"{",
		"    color : #FFFFFF !important;",
		"}",
		"",
		"div#details_panel,",
		"div#details_panel > div, ",
		"div#details_panel > div >div",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"",
		"div#add_watcher_form,",
		"div#watcher_container",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"div#add_watcher_form > h3",
		"{",
		"    font             : bold 16px verdana, arial, sans-serif;",
		"    color            : #336699 !important;",
		"    background-color : #000000 !important;",
		"}",
		"",
		"p.error_button > a,",
		"p.form_buttons > input",
		"{",
		"    font             : bold 12px verdana, arial, sans-serif !important;",
		"    color            : #336699 !important;",
		"    border-color     : #262626 !important;",
		"    background-color : #1A1A1A !important;",
		"}",
		"",
		"div#receiver",
		"{",
		"    font             : bold 16px verdana, arial, sans-serif;",
		"    color            : #FFFFFF !important;",
		"    background-color : #000000 !important;",
		"}",
		"",
		"div#receiver > div,",
		"div#receiver > div > h3,",
		"div#receiver > div > div",
		"{",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"a.mute,",
		"a.hit_link",
		"{",
		"    color : #FFFFFF !important;",
		"    background-color : #1A1A1A !important;",
		"}",
		"",
		"a.hit_link:visited",
		"{",
		"    background-color : #B8A7C3 !important;",
		"}",
		"",
		"a.mute:hover,",
		"a.hit_link:hover",
		"{",
		"    color : #FFFFFF !important;",
		"    background-color : #336699 !important;",
		"}",
		"",
		"div.watcher_button > a",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #1A1A1A;",
		"}",
		"",
		"div.watcher_button > a:hover { ",
		"    background-color: #336699 !important;",
		"}",
		"",
		"/* Settings Menu */",
		"#settingsDialog ",
		"{",
		"	background-color : #000000;",
		"}",
		"",
		"#settingsDialog h2,",
		"#settingsDialog h3",
		"{",
		"    font  : bold 16px verdana, arial, sans-serif;",
		"	color : #336699;   ",
		"}",
		"",
		"#settingsDialog > div",
		"{",
		"    color : #FFFFFF; ",
		"    background-color : #0D0D0D;",
		"}",
		"",
		"#settingsDialog .on_off.on span:nth-child(1)",
		"{",
		"    color: #FFFFFF;",
		"    background-color: #336699;",
		"}",
		"",
		"#settingsDialog .on_off span:nth-child(2) ",
		"{",
		"    color: #FFFFFF;",
		"    background-color: #336699;",
		"}",
		"",
		"#settingsDialog .on_off.on span",
		"{",
		"    color: #FFFFFF !important;",
		"}",
		"",
		"#settingsDialog .on_off span",
		"{",
		"    color: #FFFFFF;",
		"}",
		"",
		"/****** Export/Import ******/",
		"#export-box,",
		"#import-box {",
		"    background-color : #000000;",
		"}",
		"",
		"#export-box h2,",
		"#export-box h3,",
		"#import-box h2,",
		"#import-box h3",
		"{",
		"    font  : bold 16px verdana, arial, sans-serif;",
		"	color : #336699;   ",
		"}",
		"",
		"#export-box > p,",
		"#import-box > textarea",
		"{",
		"    color            : #FFFFFF;",
		"    background-color : #0D0D0D;",
		"}",
		"",
		"#receiver a:link",
		"{",
		"    color : #9BAED2 !important;",
		"}",
		"",
		"#receiver a:visited",
		"{",
		"    color : #B8A7C3 !important;",
		"}",
		"",
		"#receiver a:hover",
		"{",
		"    color : hotpink !important;",
		"}",
		"",
		"#receiver a:active",
		"{",
		"    color : blue !important;",
		"}",
		"",
		"/* Edit */",
		"img[src=\"https://i.imgur.com/peEhuHZ.png\"]",
		"{",
		"    width         : 0 !important;",
		"    height        : 0 !important;",
		"    border        : 0 !important;",
		"    padding-left  : 16px                                          !important;",
		"    padding-top   : 16px                                          !important;",
		"    background    : url(http://i.imgur.com/P1lIyc9.png) no-repeat !important;",
		"}",
		"",
		"img[src=\"https://i.imgur.com/5snaSxU.png\"]",
		"{",
		"    width         : 0 !important;",
		"    height        : 0 !important;",
		"    border        : 0 !important;",
		"    padding-left  : 16px                                          !important;",
		"    padding-top   : 16px                                          !important;",
		"    background    : url(http://i.imgur.com/Vyvjoxc.png) no-repeat !important;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("https://www.mturk.com/mturk/transferearnings") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/requesttransferearnings") == 0))
	css += [
		"table:nth-of-type(3) > tbody > tr > td",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"table > tbody > tr[height=\"25\"] td,",
		"table > tbody > tr[height=\"25px\"] td",
		"{",
		"    background-color : #1A1A1A !important;",
		"    border-color     : #FFFFFF !important;",
		"    border-radius    : 0px     !important;",
		"    border-style     : solid   !important;",
		"    border-width     : 1px     !important;",
		"}",
		"",
		"tr.odd ",
		"{",
		"    background-color : #1A1A1A !important;",
		"    ",
		"}",
		"",
		"tr.even ",
		"{",
		"    background-color : #262626 !important;",
		"}",
		"",
		"tr.odd > td,",
		"tr.even > td",
		"{",
		"    color : #FFFFFF !important;   ",
		"}",
		"",
		"tr.grayHead",
		"{",
		"    background-color : #1A1A1A !important;",
		"}",
		"",
		"td.greybox",
		"{",
		"    background-color : #0D0D0D !important;",
		"    background-image : none    !important;  ",
		"}",
		"",
		"td[width=\"10\"]",
		"{",
		"   display : none !important;",
		"}",
		"",
		"/****** Changes link colors ******/",
		"a[href*=\".amazon.com\"]:link",
		"{",
		"    color : #9BAED2 !important;",
		"}",
		"",
		"a[href*=\".amazon.com\"]:visited",
		"{",
		"    color : #B8A7C3 !important;",
		"}",
		"",
		"a[href*=\".amazon.com\"]:hover",
		"{",
		"    color : hotpink !important;",
		"}",
		"",
		"a[href*=\".amazon.com\"]:active",
		"{",
		"    color : blue !important;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("https://www.mturk.com/mturk/findquals") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/sortquals") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/pendingquals") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/searchbar?selectedSearchType=quals") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/sortsearchbar?searchSpec=QualTypeSearch") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/requestqualification") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/takequalificationtest") == 0))
	css += [
		"/****************************/",
		"/****** Qualifications ******/",
		"/****************************/",
		"",
		"/* Table just underneath the navigation table */",
		"#subtabs_and_searchbar:first-of-type + table td,",
		"#subtabs_and_searchbar:first-of-type + div > table td,",
		"#expirationMessageWrapper:first-of-type + div > table td",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"/* Table just underneath the navigation table */",
		"#subtabs_and_searchbar:first-of-type + table > tbody > tr > td,",
		"#subtabs_and_searchbar:first-of-type + div,",
		"#expirationMessageWrapper:first-of-type + div > table",
		"{",
		"	border-color  : #FFFFFF !important;",
		"	border-radius : 0px     !important;",
		"	border-style  : solid   !important;",
		"	border-width  : 1px     !important;",
		"}",
		"",
		"/* Information Capsules */",
		"#sortresults_form:first-of-type + table td,",
		"#subtabs_and_searchbar:first-of-type + table + table + table  td",
		"{",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"/* Information Capsules */",
		"#subtabs_and_searchbar:first-of-type + table + table + table > tbody > tr > td > table,",
		"#subtabs_and_searchbar:first-of-type + table + table + table > tbody",
		"{",
		"	border-color  : #FFFFFF !important;",
		"    border-radius : 0px     !important;",
		"    border-style  : solid   !important;",
		"    border-width  : 1px     !important;",
		"}",
		"",
		"#subtabs_and_searchbar:first-of-type + div > table td#author,",
		"#subtabs_and_searchbar:first-of-type + div > table td#retake_date,",
		"#subtabs_and_searchbar:first-of-type + div > table td#qualification_score,",
		"#expirationMessageWrapper:first-of-type + div > table td#author,",
		"#expirationMessageWrapper:first-of-type + div > table td#retake_date,",
		"#expirationMessageWrapper:first-of-type + div > table td#qualification_score",
		"{",
		"    color : #336699 !important;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("https://www.mturk.com/mturk/youraccount") == 0))
	css += [
		"#subtabs_and_searchbar:first-of-type + table  > tbody > tr:nth-child(4)",
		"{",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"#subtabs_and_searchbar:first-of-type + table  > tbody tr:nth-child(4) > td",
		"{",
		"	border-color  : #FFFFFF !important;",
		"	border-radius : 0px     !important;",
		"	border-style  : solid   !important;",
		"	border-width  : 1px     !important;",
		"}",
		"",
		"font.almostblack_text_big_bold",
		"{",
		" color : #FFFFFF;   ",
		"}",
		"",
		"td.greyBox",
		"{",
		"    background-image : none;",
		"}",
		"",
		"a[href*=\".amazon.com\"]:link",
		"{",
		"    color : #9BAED2 !important;",
		"}",
		"",
		"a[href*=\".amazon.com\"]:visited",
		"{",
		"    color : #B8A7C3 !important;",
		"}",
		"",
		"a[href*=\".amazon.com\"]:hover",
		"{",
		"    color : hotpink !important;",
		"}",
		"",
		"a[href*=\".amazon.com\"]:active",
		"{",
		"    color : blue !important;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("https://www.mturk.com/mturk/help") == 0) || (document.location.href.indexOf("https://www.mturk.com/mturk/contact") == 0))
	css += [
		"div.black_text",
		"{",
		" color : #FFFFFF !important;   ",
		"}",
		"",
		"#subtabs_and_searchbar:first-of-type + table td",
		"{",
		"    color : #FFFFFF !important;",
		"}",
		"",
		"table.contactusfaq",
		"{",
		"    border-color  : #FFFFFF !important;",
		"    border-radius : 0px     !important;",
		"    border-style  : solid   !important;",
		"    border-width  : 1px     !important;",
		"}",
		"",
		"table.contactusfaq > tbody > tr",
		"{",
		"    color            : #FFFFFF !important;",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"div.contactus ",
		"{",
		"    background-color : #0D0D0D !important;",
		"}",
		"",
		"table.email",
		"{",
		"    background-color : #1A1A1A !important;",
		"    border-color     : #FFFFFF !important;",
		"    border-radius    : 0px     !important;",
		"    border-style     : solid   !important;",
		"    border-width     : 1px     !important;",
		"}",
		"",
		"div.contactus input[type=\"submit\"][value=\"Submit\"]",
		"{",
		"    font             : bold 12px verdana, arial, sans-serif;",
		"    color            : #336699 !important;",
		"    border-color     : #262626 !important;",
		"    background-color : #1A1A1A !important;",
		"}"
	].join("\n");
if (false || (document.location.href.indexOf("https://www.mturk.com/mturk/welcome") == 0))
	css += [
		".basefontsize",
		"{",
		"    color : #FFFFFF !important;",
		"}"
	].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);
	}
}
})();