P9夜间模式

本CSS样式为P9的夜间模式,为了方便夜间使用而编写的。

目前為 2019-01-01 提交的版本,檢視 最新版本

// ==UserScript==
// @name          P9夜间模式
// @namespace     http://userstyles.org
// @description	  本CSS样式为P9的夜间模式,为了方便夜间使用而编写的。
// @author        InfinityLoop
// @homepage      https://userstyles.org/styles/167244
// @include       http://psnine.com/*
// @include       https://psnine.com/*
// @include       http://*.psnine.com/*
// @include       https://*.psnine.com/*
// @include       http://d7vg.com/*
// @include       https://d7vg.com/*
// @include       http://*.d7vg.com/*
// @include       https://*.d7vg.com/*
// @include       https://psnine.com/game*
// @include       https://d7vg.com/game*
// @include       https://psnine.com/news*
// @include       https://d7vg.com/news*
// @include       https://psnine.com/gene*
// @include       https://d7vg.com/gene*
// @include       https://psnine.com/trade*
// @include       https://d7vg.com/trade*
// @include       https://psnine.com/psnid*
// @include       https://d7vg.com/psnid*
// @run-at        document-start
// @version       0.20190101111237
// ==/UserScript==
(function() {var css = "";
if (false || (document.domain == "psnine.com" || document.domain.substring(document.domain.indexOf(".psnine.com") + 1) == "psnine.com") || (document.domain == "d7vg.com" || document.domain.substring(document.domain.indexOf(".d7vg.com") + 1) == "d7vg.com"))
	css += [
		"/*主页*/",
		"  li[style=\"background:#f5faec\"]",
		"  {",
		"    background: #184e1b !important;",
		"  }",
		"",
		"  li[style=\"background:#fdf7f7\"]",
		"  {",
		"    background: #4e1818 !important;",
		"  }",
		"",
		"  li[style=\"background:#faf8f0\"]",
		"  {",
		"    background: #4e4e18 !important;",
		"  }",
		"",
		"  li[style=\"background:#f4f8fa\"]",
		"  {",
		"    background: #505050 !important;",
		"  }",
		"",
		"  span[style=\"color:blue;\"]",
		"  {",
		"    color: #64a5ff !important;",
		"  }",
		"",
		"  span[style=\"color:red;\"]",
		"  {",
		"    color: #ff6464 !important;",
		"  }",
		"",
		"  span[style=\"color:brown;\"]",
		"  {",
		"    color: #ff8864 !important;",
		"  }",
		"",
		"  .tit3",
		"  {",
		"    color: white !important;",
		"  }",
		"/*mark黑条鼠标放置反白*/",
		"  .mark",
		"  {",
		"    background: #bbb !important;",
		"    color: #bbb !important;",
		"  }",
		"/*.mark:hover {*/",
		"/*    color: #2b2b2b !important;*/",
		"/*}*/",
		".mark:hover {",
		"    color: #2b2b2b !important;",
		"}",
		"",
		"/*背景底色*/",
		"  body.bg",
		"  {",
		"    background: #2b2b2b !important;",
		"  }",
		"",
		"/*回帖背景色*/",
		"  .list li",
		"  {",
		"    background: #2b2b2b !important;",
		"    border: 1px solid #666666 !important;",
		"  }",
		"/*回帖字体颜色*/",
		"  .content",
		"  {",
		"    color: #bbb !important;",
		"  }",
		"/*回帖用户名底色*/",
		"  .psnnode",
		"  {",
		"    background: #656565 !important;",
		"  }",
		"",
		"/*奖杯帖子标题头底色*/",
		"  .box",
		"  {",
		"    background: #3d3d3d !important;",
		"  }",
		"",
		"/*游戏列表标题*/",
		"  .title a",
		"  {",
		"    color: #bbb !important;",
		"  }",
		"/*个别短标签颜色*/",
		"  .text-strong, strong",
		"  {",
		"    color: #bbb !important;",
		"  }",
		"/*排名字体*/",
		"  .twoge",
		"  {",
		"    color: white !important;",
		"  }",
		"",
		"/*store*/",
		"  .storeinfo",
		"  {",
		"    color: #bbb !important;",
		"  }",
		"",
		"/*warining*/",
		"  .alert-warning",
		"  {",
		"    background: #4d4d4d !important;",
		"  }",
		"",
		"  .alert-info",
		"  {",
		"    background: #5e5e5e !important;",
		"  }",
		"",
		"  .alert-success",
		"  {",
		"    background: #4b4b4b !important;",
		"  }",
		"",
		"  h1,.title2",
		"  {",
		"    color: #ffffff !important;",
		"  }",
		"",
		"/*个人主页navi*/",
		"  .inav",
		"  {",
		"    background: #3d3d3d !important;",
		"  }",
		"",
		"  .inav li.current",
		"  {",
		"    background: #4b4b4b !important;",
		"  }",
		"",
		"/*tip背景色*/",
		"/*类型奖杯底色*/",
		"  .ml100 p",
		"  {",
		"    color: #ffffff !important;",
		"  }",
		"",
		"  .t1",
		"  {",
		"    background: #657caf !important;",
		"  }",
		"",
		"  .t2",
		"  {",
		"    background: #845e2f !important;",
		"  }",
		"",
		"  .t3",
		"  {",
		"    background: #707070 !important;",
		"  }",
		"",
		"  .t4",
		"  {",
		"    background: #8b4d2d !important;",
		"  }",
		"",
		"  blockquote",
		"  {",
		"    background: #bababa !important;",
		"  }",
		"",
		"/*交易页面*/",
		"  .tradelist li",
		"  {",
		"    color: white !important;",
		"  }"
	].join("\n");
if (false || (document.location.href.indexOf("https://psnine.com/game") == 0) || (document.location.href.indexOf("https://d7vg.com/game") == 0) || (document.location.href.indexOf("https://psnine.com/news") == 0) || (document.location.href.indexOf("https://d7vg.com/news") == 0) || (document.location.href.indexOf("https://psnine.com/gene") == 0) || (document.location.href.indexOf("https://d7vg.com/gene") == 0) || (document.location.href.indexOf("https://psnine.com/trade") == 0) || (document.location.href.indexOf("https://d7vg.com/trade") == 0) || (document.location.href.indexOf("https://psnine.com/psnid") == 0) || (document.location.href.indexOf("https://d7vg.com/psnid") == 0))
	css += [
		"/*选中帖子高亮*/",
		"  .list li:hover",
		"  {",
		"    background: #000000 !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);
	}
}
})();