Eclipse - NEA

Dark theme for NEA Haze website

Versione datata 24/09/2015. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Eclipse - NEA
// @namespace    http://yeoxingyee.ml/
// @version      1.0
// @description  Dark theme for NEA Haze website
// @author       Yeo Xing Yee
// @match        http://www.haze.gov.sg/*
// @grant        none
// ==/UserScript==

(function() {var css = "";
if (false || (new RegExp("http://www.haze.gov.sg/")).test(document.location.href))
	css += [
		"div,div#footer,div.search-container{",
    "background: black",
"}",
        "li, ul{",
    "background: black !important",
"}",
"table tbody .even td, table tbody .even th{",
"    background-color: rgb(40,40,40) !important;",
"    background: rgb(40,40,40) !important;",
"}",
"tr{",
"border-top-color: rgb(0,0,0) !important;",
"}",
"*{",
    "color: white !important;",
"}",
"a{",
    "color: rgb(20,240,240) !important;",
"}",
"html{",
    "background: url(http://www.psychicdonut.com/wp-content/uploads/2012/09/Dark-Clouds.jpeg) no-repeat;",
    "background-size: cover;",
"}",
	].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);
	}
}
})();