User:Tomas.stanik/myskin.js

// // Written by Faisal Deshmukh // Script Version: 2.1 // // // ==UserScript== // @name          Dark skin for wikipedia

// @namespace     http://userscripts.org/scripts/show/47321 // @description   Black skin for wikipedia // @include       http://en.wikipedia.org/*

// ==/UserScript==

//TTD //-insert wiki logo inside the script

function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }

addGlobalStyle(	'h1, h2, h3, h4, h5, h6 { color: white ! important; }'	+	'body { background: #262626 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAENCAYAAADOoA9GAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABZSURBVHjaYmBgYPjPACP+MYFIEPEflfUflwQRSojgUiyGX4IkJTTRi5P4R39T/tFByT8qa6OJof8GPJgGPjHQI/FTki+pWFCQXlQhsZiBmBFMwLlgwAgQYAAYPe0bQ81rlgAAAABJRU5ErkJggg==") top left repeat-x !important;}'					//#262626 = grey color	+	'table { color: white ! important; background-color: black ! important;}'	+	'#content {background: black ! important; color: white ! important;}'	+	'.pBody { color: white ! important; background-color: black ! important;}'	+	'.catlinks {background-color: black ! important;}'	+	'th {background-color: #666666 ! important;}'	+	'.ns-0 #p-cactions li a {background-color: black ! important;}'	+	'div.thumbinner {background-color: black ! important;}'		//might be unncessary +	'.navbox-group {background: #666666 ! important;}' +	'.navbox-even {background: #999999 ! important; border-left: 2px solid #000000 ! important;}' +	'.navbox-odd {border-left: 2px solid #000000 ! important;}' +	'.infobox.sisterproject {color: white ! important; background-color: black ! important;}' +	'img {background-color: white ! important;}'

//Modifications for main page --start +					'#mp-tfa-h2, #mp-itn-h2, #mp-dyk-h2, #mp-otd-h2, #mp-tfp-h2 {background-color: #666666 !important;}'	//main page headings +	'p {color: white ! important; background-color: black ! important;}' +	'li {color: white ! important; background-color: black ! important;}' +	'div {color: white ! important;}' +	'.MainPageBG {background-color: black !important;}' //Modifications for main page --end

//	+ //	'#content .gallerybox div.thumb {background-color: black ! important;}'		/* The backgrounds for galleries. */	+	'td {color: white ! important; background-color: black ! important;}' +	'#column-one {border-bottom-color: #FF0000 ! important;}' +	'div.mw-warning-with-logexcerpt, div.mw-cascadeprotectedwarning {background: black ! important;}'	//removes pink color from editing page );