NGA 夜间模式

方便摸鱼

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

// ==UserScript==
// @name         NGA 夜间模式
// @namespace    http://tampermonkey.net/
// @version      0.2
// @author       Metaphor
// @description  方便摸鱼
// @match        *://bbs.nga.cn/*
// @match        *://ngabbs.com/*
// @match        *://nga.178.com/*
// @license      MIT
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    GM_addStyle(
        `
html body{
  background-color: #212121;
  color: #a6a6a6;
}

/* 超链接颜色:导航,翻页,用户名 */
.stdbtn a , a{color:#a9b7c6 !important}
.stdbtn a:hover , a:hover {color:#b87563 !important}

/* 导航栏/翻页:底色、边框 */
.innerbg {background: #212121 !important;}
.stdbtn {box-shadow: 0 0 15px -3px #000 !important;}
.stdbtn a {border-color: #0000;background: #212121 !important;}

/* 搜索栏 */
textarea, select, input[type="text"], input:not([type]) {
    border: 0px;
    box-shadow: 0 0 2px 0 #bbb inset;
    background: #212121;
    color:#a6a6a6;
  }

/* 按钮 */
button {background: #a6a6a6;}

/* 去除底图 */
#custombg {margin-bottom: 0px !important;display: none;}
#mainmenu{margin-bottom: 20px !important;}


/* 板块卡片 */
.nav_root, .nav_link, .nav_spr {
  border:1px solid #0000;
  background:#212121;
  color:#a9b7c6;
  box-shadow: 0 0 15px -3px #000;
}


.haveCustomBackground #m_pbtntop .stdbtn {
  background:#0000;
  border:1px solid #0000;
}

/* 隐藏边线 */
.forumbox {border-spacing:0px;border-color: #0000!important;}

/* 人物栏 回复 */
.forumbox {background-color:#303030;}
#m_posts {border: 0px;}
.row1c1, .row1 .c1 {background-color:#282828}
.row1c2, .row1 .c2 {background-color:#282828}
.row2c1, .row2 .c1 {background-color:#212121}
.row2c2, .row2 .c2 {background-color:#212121}

/* 楼层 */
.block_txt_c0 {
  background: #fff0;
}
/* 点赞 */
.block_txt_c2 {background: #fff0;}
/* 改动 */
.block_txt_c3 {
  background: #fff0;
  color: #888;
}
/* 拇指 */
.white {color:#a6a6a6}



/* 浮动栏 */
.stdbtn {background:#21972e00;border: 0px;box-shadow: 0 0 15px -3px #000;}


/* 用户栏宽度 */
.forumbox .postrow .c1 {width:15%;}
/* 人物属性:无边框 */
.forumbox .postrow .stat {border:0px solid #fff0;}
/* 经验条 */
.r_container {display: none;}
/* 用户栏隐藏头像 */
.postrow .avatar, .msgread .avatar {display: none;}
/* 用户栏昵称优化 */
.block_txt {
  min-width: auto !important;
  background-color: #0000 !important;
  color:#a9b7c6 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.small_colored_text_btn{
  background-color: #0000 !important;
}

/* POST阴影 */
#m_posts .forumbox {box-shadow: 0 0 15px -3px #000;}
/* 去除POST右上角3个ICON */
.small_colored_text_btn , .inlineBlock {display: none  !important;}
/* 去除"改动分割线“ */
.forumbox .postrow .c2 .subtitle {display: none;}
/* 正文图片去边框 */
img {outline: 0px !important;}
/* 正文折叠部分 */
.collapse_btn {width:fit-content;border-top:0px;border-bottom:0px;background: #161616;border-radius: 7px;box-shadow: 0 0 3px 0px #454545}
.collapse_content {width:fit-content;border-bottom: 0px;background: #161616;border-radius: 7px;box-shadow: 0 0 3px 0px #454545;}
/* 正文隐藏签名 */
.sigline , [id ^= "postsign"] {display: none !important;}
/* 正文引用 */
.quote {background:#323232;border:0px;}
/* 贴条 */
.comment_c_1, .comment_c_2 {border: 0em !important;background:#323232 !important;}
        `
    )
})();