User:Madly Happy/common.css: Difference between revisions

From Baka-Tsuki
Jump to navigation Jump to search
Created page with "@namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("baka-tsuki.org") { /*!========================================\\ || Dark Baka-Tsuki..."
 
No edit summary
 
Line 1: Line 1:
@namespace url(http://www.w3.org/1999/xhtml);
// ==UserScript==
 
// @name          baka-tsuki NIGHT (dark)
@-moz-document domain("baka-tsuki.org") {
// @namespace     http://userstyles.org
 
// @description   A simple dark theme for Baka-tsuki
/*!========================================\\
// @author        ARH
|| Dark Baka-Tsuki                        ||
// @homepage      https://userstyles.org/styles/109013
||-----------------------------------------||
// @include      http://baka-tsuki.org/*
|| Created by ARH                          ||
// @include      https://baka-tsuki.org/*
||-----------------------------------------||
// @include      http://*.baka-tsuki.org/*
|| Comment Template by MIMIC-Project      ||
// @include      https://*.baka-tsuki.org/*
||-----------------------------------------||
// @run-at        document-start
|| A simple dark theme for Baka-tsuki      ||
// @version      0.20150205004849
|| Especially usefull when reading at night||
// ==/UserScript==
||-----------------------------------------||
(function() {var css = [
|| ver 1.0b (dark)                        ||
"/*!========================================\\\\",
\\----------------------------------------!*/
"|| Dark Baka-Tsuki                        ||",
 
"||-----------------------------------------||",
 
"|| Created by ARH                          ||",
  div#content, div#simpleSearch, input, button, pre {
"||-----------------------------------------||",
    background-color: #000000 !important;
"|| Comment Template by MIMIC-Project      ||",
  }
"||-----------------------------------------||",
 
"|| A simple dark theme for Baka-tsuki      ||",
  body, div#toc, th, div#mw-page-base, div#catlinks, div.mw-content-ltr#mw-content-text > div:first-of-type {
"|| Especially usefull when reading at night||",
    background-color: #222222 !important;
"||-----------------------------------------||",
  }
"|| ver 1.0b (dark)                        ||",
 
"\\\\----------------------------------------!*/",
  ul, li, td, tr, table, div.thumb {
"",
    background-color: inherit !important;
"  ",
  }
div#content, div#simpleSearch, input, button, pre {",
 
"    background-color: #000000 !important;",
  div#mw-page-base, span, ul, li {
}",
    background-image: none !important;
"  ",
  }
body, div#toc, th, div#mw-page-base, div#catlinks, div.mw-content-ltr#mw-content-text > div:first-of-type {",
 
"    background-color: #222222 !important;",
  h1, h2, h3, h4, h5, h6, div#content, input, button, pre {
}",
    color: #DDDDDD !important;
"  ",
  }
ul, li, td, tr, table, div.thumb {",
 
"    background-color: inherit !important;",
  a {
}",
    color: #aaaaff !important;
"  ",
  }
div#mw-page-base, span, ul, li {",
 
"    background-image: none !important;",
  a:visited {
}",
    color: #ffaaff !important;
"  ",
  }
h1, h2, h3, h4, h5, h6, div#content, input, button, pre {",
 
"    color: #DDDDDD !important;",
  a.external {
}",
    color: #aaffaa !important;
"  ",
  }
a {",
 
"    color: #aaaaff !important;",
  a.new {
}",
    color: red !important;
"  ",
  }
a:visited {",
 
"    color: #ffaaff !important;",
}",
"  ",
a.external {",
"    color: #aaffaa !important;",
}",
"  ",
a.new {",
"    color: red !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);
}
}
}
})();

Latest revision as of 07:46, 19 October 2015

// ==UserScript==
// @name          baka-tsuki NIGHT (dark)
// @namespace     http://userstyles.org
// @description	  A simple dark theme for Baka-tsuki
// @author        ARH
// @homepage      https://userstyles.org/styles/109013
// @include       http://baka-tsuki.org/*
// @include       https://baka-tsuki.org/*
// @include       http://*.baka-tsuki.org/*
// @include       https://*.baka-tsuki.org/*
// @run-at        document-start
// @version       0.20150205004849
// ==/UserScript==
(function() {var css = [
	"/*!========================================\\\\",
	"|| Dark Baka-Tsuki                         ||",
	"||-----------------------------------------||",
	"|| Created by ARH                          ||",
	"||-----------------------------------------||",
	"|| Comment Template by MIMIC-Project       ||",
	"||-----------------------------------------||",
	"|| A simple dark theme for Baka-tsuki      ||",
	"|| Especially usefull when reading at night||",
	"||-----------------------------------------||",
	"|| ver 1.0b (dark)                        ||",
	"\\\\----------------------------------------!*/",
	"",
	"  ",
	"  div#content, div#simpleSearch, input, button, pre {",
	"    background-color: #000000 !important;",
	"  }",
	"  ",
	"  body, div#toc, th, div#mw-page-base, div#catlinks, div.mw-content-ltr#mw-content-text > div:first-of-type {",
	"    background-color: #222222 !important;",
	"  }",
	"  ",
	"  ul, li, td, tr, table, div.thumb {",
	"    background-color: inherit !important;",
	"  }",
	"  ",
	"  div#mw-page-base, span, ul, li {",
	"    background-image: none !important;",
	"  }",
	"  ",
	"  h1, h2, h3, h4, h5, h6, div#content, input, button, pre {",
	"    color: #DDDDDD !important;",
	"  }",
	"  ",
	"  a {",
	"    color: #aaaaff !important;",
	"  }",
	"  ",
	"  a:visited {",
	"    color: #ffaaff !important;",
	"  }",
	"  ",
	"  a.external {",
	"    color: #aaffaa !important;",
	"  }",
	"  ",
	"  a.new {",
	"    color: red !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);
	}
}
})();