Eclipse

Dark theme for NEA Haze website

2015-09-25 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Eclipse
// @namespace    http://yeoxingyee.ml/
// @version      1.2
// @description  Dark theme for NEA Haze website
// @author       Yeo Xing Yee
// @match        http://www.haze.gov.sg/*
// @match        https://www.facebook.com/*
// @include      https://twitter.com/
// @include      https://twitter.com/i/notifications
// @include      https://twitter.com/mentions*
// @include      http://twitter.com*
// @include      https://twitter.com*
// @include      https://tweetdeck.twitter.com/*
// @include      http://tweetdeck.twitter.com/*
// @include      http://*
// @include      https://*
// @include *
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {var css = "";
if (false || (new RegExp("http://www.haze.gov.sg/")).test(document.location.href) || (new RegExp("^http(s)?://.*(?!code)\\.facebook\\.com/(?!plugins/|Fplugins|help|business|safety|about/basics).*$")).test(document.location.href) || (location.href.replace(location.hash,'') == "https://twitter.com/") || (location.href.replace(location.hash,'') == "https://twitter.com/i/notifications") || (document.location.href.indexOf("https://twitter.com/mentions") == 0))
	css += [
		"div,div#footer{",
    "background: #161616 !important",
"}",
        "li, ul, buttons, nav, input, ._5yk1, .UFIImageBlockContent _42ef _8u,div.search-container{",
    "background: #161616 !important",
"}",
"table tbody .even td, table tbody .even th{",
"    background-color: 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, body{",
    "background: url(http://cdn.wonderfulengineering.com/wp-content/uploads/2014/04/space-wallpapers-9.jpg) #000 no-repeat; !important",
        "background-color: #000 !important",
    "background-size: cover;",
"}",
        "#u_ps_0_5_1{",
        "display:none !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);
	}
}
})();