User:XStacey/vector.css

// ==UserScript== // @name         Wikipedia - Black background, Light text // @namespace    http://userstyles.org // @description	 Based on the great work of: http://userstyles.org/styles/13864 // @author       Ronnen Nagal // @homepage     https://userstyles.org/styles/21275 // @include      http://wikipedia.org/* // @include      https://wikipedia.org/* // @include      http://*.wikipedia.org/* // @include      https://*.wikipedia.org/* // @run-at       document-start // @version      0.20090926100048 // ==/UserScript== (function {var css = [	"* { color: white ; background-color: black; font-family: Georgia, \"Times New Roman\", Times, Serif;  line-height: 2.0em; font-size: 1.0em; -moz-appearance: none !important;",	"}",	"",	"html, body, div, table, th, td, p, ul, ol, li, form, iframe, tbody, dl, dt, dd, span, fieldset, label, span[style=\"font-style: normal;\"], ",	"font, style, table:not([class=\"reference\"]) > tbody > tr > td:not([class=\"selected\"]), .e1, .dayTime,  .sb1, .sb2",	"{",	"-moz-appearance: none !important;",	"color: white  !important;  ",	"background-color: black !important;",	"}",	"",	"* { border-color : grey !important}",	"",	"::-moz-selection { color: black ! important; background-color: #a6ab00 ! important; }",	"",	"cite, cite *, code, pre, pre *, box *, .bxbg *, .comhead *{ color: white  !important; background-color: #023 !important;}",	"cite:hover *{ background-color: #023 !important; color: #aaa  !important;}", "blockquote *, blockquote{ color: #bbb !important; background-color: #023 !important; border-color: #8dc896 !important;}", "",	"a:link, a:link *, * a{ -moz-appearance: none !important;  background-color: black !important;  font-weight:bold; color: #C0C0C0 !important }", "a:active, a:active * {  -moz-appearance: none !important; background-color: transparent !important; color: red !important }", "a:visited, a:visited * {  -moz-appearance: none !important;  background-color: transparent !important; color:  #338060 !important }", "a:hover, a:hover * {  -moz-appearance: none !important; background-color: black !important;  text-decoration: underline !important; color: #FEDDAA !important }", "",	"strong, b, small, big, b>*, h1, h1 > a, h2, h3, h4, h5, h6, h7, tt, em, span[style=\"font-weight: bold;\"], span[class=\"item-title\"], span[style=\"font-style: italic;\"], i, span[class=\"title\"], span[class=\"fly-title\"], .dvbxImgCapt,", "*[font-size=\"xx-large\"], *[font-size=\"x-large\"], stname, ssname, #goog-imageless-button-content,", ".goog-imageless-button-content, .tr_sort-bar > thead > tr > td, #tr_file-view > thead > tr > td,", "#innerheadlines, .mod_grafico_foto2 *, .heading1 *", "{ background-color: black !important; color: #C0C0C0 !important; }", "",	"img, a.image * {-moz-appearance: none !important; background-color: #999481 !important;}", "a > img {-moz-appearance: none !important; background-color: transparent !important;}", "img:hover {-moz-appearance: none !important; background-color: gainsboro !important;}", "img:active {background-color: gold !important;}", "",	"div[id*=\"lightbox\"], div[id*=\"lightbox\"] *, div[id*=\"lightbox\"] a {background-color: transparent !important;}", "",	"span[class=\"toctext\"], span[class=\"tocnumber\"] ", "{ background-color: black !important; color: #98AFC7 !important; font-family: Georgia, \"Times New Roman\", Times, Serif;}", "div[class=thumbcaption] { background-color: black !important; color: #348 !important; font-family: Georgia, \"Times New Roman\", Times, Serif;}", "div[class=thumbcaption] > a { color: #579 !important; font-family: Georgia, \"Times New Roman\", Times, Serif; }", "div[class=navpopup] { border-color: #333 !important; font-family: Georgia, \"Times New Roman\", Times, Serif;}", "",	"#dropmenu_container *, #nonfooter *, #channel_iframe *, #post_form_id *, .invite *, .invite_friends *, ", "#doc4 *, .viewport, .pageImageDisplay *, .footer *,  .userimg *, .userimg * img, .userimg:hover *,  .phototag *, #headerbot *, #view_container *, #topnav_container *, #scribd-doc *, #scribd-doc:hover *, #phpbb * div *, #ss_prev, #ss_next, #ss_prev:hover *, #ss_next:hover *, #ICc0 *, #sn_ccCommentCtrlCommentControl  *,  .c_main * div *, .clearfix ul *, #photos *, #Photo *, div  .PhotoStream *, #wrapper * img, #dc * img,  #marketUpdate *, .bodybottom * img, ", "#it_container *, img.icon * img, .icon, #vduwrap *, .xpand * img, ", "div.tab_content *, .tab_content:hover *, div.profile_top_wash *, div.profile_top_wash:hover *, .album_container *,", "div.UIOneOff_Container *, .album_container:hover *,.UIOneOff_Container:hover *, #lbImage *, #slide *, .wrapper *, #tree * img, div.scontentarea *, .boxwhite *, .boxwhite *:hover,  #vi-container * div, .ipics-cell * img, .lview * img", "{background-color: transparent  !important}", "",	"#pg_height *, #phpbb * table{border-width : 1px }", ".forumline * th,.forumline * .row1, .forumline * .row2 {border : 1px solid #222 !important}", "",	"m, span[class=\"highlight\"], h3 > a > em, .v1, .s>em, span.__mozilla-findbar-search", "{background-color: orange !important; color: black !important;}", "",	"input[type=button], input[type=submit], input[type=reset], input[type=hidden], button", "{",	"-moz-appearance: none !important;", "background-color: /*ButtonFace*/ #012 !important; ", "color: /*ButtonText*/ burlywood !important; ", "border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight !important;", "}",	"",	"select, input[type=select]", "{ ",	"-moz-appearance: none !important; ", "background-color: #5d6871 !important; ", "color: lightgrey !important; ", "}",	"",	"textarea, input[type=textbox], input[type=text], input, samp, kbd, var, dfn ", "{ ",	"-moz-appearance: none !important; ", "background-color:  #023 !important; ", "border-color: #648 !important;", "color: #888 !important;", "font-family: sans-serif !important;", "border: 1px solid !important;", "}",	"",	"textarea:hover, input[type=textbox]:hover, input[type=text]:hover, input:not([type]):hover", "{",	"background-color: #111 !important;", "border-color: blue !important;", "color: #888 !important;", "border: 1px solid !important;", "}",	"",	"input[type=file] { background-color : lightgrey !important; color:black !important}", "",	"input[type=password]", "{ ",	"-moz-appearance: none !important; ", "background-color: #77a7aa !important; ", "color: #0000FF !important;", "border-color: blue !important;", "border: 1px solid !important;", "}",	"",	"textarea:focus, input[type=textbox]:focus, input[type=text]:focus", "{",	"background-color: #000 !important;", "border-color: lightblue !important;", "color: #999 !important;", "border: 1px solid !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); } } });