Mefi Endarkener

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

Stan na 08-10-2014. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);
	}
}
})();