Mefi Endarkener

Improves the contrast of www.metafilter.com (the blue), ask.metafilter.com (the green), and metatalk.metafilter.com (the gray).

Verze ze dne 08. 10. 2014. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name          Mefi Endarkener
// @namespace     http://userstyles.org
// @description	  Improves the contrast of www.metafilter.com (the blue), ask.metafilter.com (the green), and metatalk.metafilter.com (the gray).
// @author        almostmanda, but edited from b0at
// @include       http://www.metafilter.com/*
// @include       https://www.metafilter.com/*
// @include       http://*.www.metafilter.com/*
// @include       https://*.www.metafilter.com/*
// @include       http://ask.metafilter.com/*
// @include       https://ask.metafilter.com/*
// @include       http://*.ask.metafilter.com/*
// @include       https://*.ask.metafilter.com/*
// @include       http://metatalk.metafilter.com/*
// @include       https://metatalk.metafilter.com/*
// @include       http://*.metatalk.metafilter.com/*
// @include       https://*.metatalk.metafilter.com/*
// @run-at        document-start
//
// @version 0.0.1.20141008164923
// ==/UserScript==
(function() {
var css = "";
if (false || (document.domain == "www.metafilter.com" || document.domain.substring(document.domain.indexOf(".www.metafilter.com") + 1) == "www.metafilter.com"))
	css += "body.subsite-metafilter.dark-mode .content, body.subsite-metafilter.dark-mode .post-text { background: #002133 !important; }";
if (false || (document.domain == "ask.metafilter.com" || document.domain.substring(document.domain.indexOf(".ask.metafilter.com") + 1) == "ask.metafilter.com"))
	css += "body.subsite-askmefi.dark-mode .content, body.subsite-askmefi.dark-mode .post-text { background: #192819 !important; }\n\n  div.comments.best,\n  div.comments.bestleft {\n    background: transparent !important;\n  }\n\n  div.comments.best     { outline: thick solid rgb(94, 126, 98) !important; }\n  div.comments.bestleft { border-left: thick dotted rgb(94, 126, 98) !important; }\n\n  div.tags,\n  div.darker {\n    background: rgb(33, 52, 35) !important;\n  }";
if (false || (document.domain == "metatalk.metafilter.com" || document.domain.substring(document.domain.indexOf(".metatalk.metafilter.com") + 1) == "metatalk.metafilter.com"))
	css += "body.subsite-metatalk.dark-mode .content, body.subsite-metatalk.dark-mode .post-text { background: #222 !important; }";
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);
	}
}
})();