It's not perfect, and I'm sure there's corners of the forum that I normally don't visit that may not be 100%, but it works well enough for me.
Code: Select all
// ==UserScript==
// @name Rainmeter recolor
// @author MikeG621
// @namespace http://github.com/MikeG621
// @description Grey on black, keeping some of the blue in the default phpBB theme
// @version 181016
// @grant GM_addStyle
// @include http*://forum.rainmeter.net/*
// ==/UserScript==
var s = 'body, div, p {background-color:#000 !important; color: #777 !important;}';
s += 'li.sticky dd, dl.topic_read dd, li.unread dd, dl.topic_read_hot, li.announce dd, ul.topiclist li , li.header dd {background-color:#000; color:#777 !important;}'; // this is separate just because this is a category of elements
s += '.tablebg, th, .row1, .row2, .row3, tr.row2 .row, tr.row3 .row, tr.row1 .row, #contentrow, td.postbottom {background:none !important; background-color: #111 !important;}';
s += 'div.postbody div.content span, .attachbox {background-color:#000 !important;}';
s += 'dl.forum_unread dt a {background-image: url("https://forum.rainmeter.net/styles/basic/theme/images/forum_unread.png");}';
s += '.topic_unread dt a, .topic_unread_hot dt a, .sticky_unread dt a, .pm_unread dt a, .topic_unread_mine dt a, .forum_unread_subforum dt a {background-image: url("https://forum.rainmeter.net/styles/basic/theme/images/topic_unread.png");}';
s += '.global_unread dt a, .global_unread_mine dt a, .announce_unread_mine dt a, .announce_unread dt a {background-image: url("https://forum.rainmeter.net/styles/basic/theme/images/announce_unread.png");}';
s += '.topic_unread_locked dt a {background-image: url("https://forum.rainmeter.net/styles/basic/theme/images/topic_unread_locked.png");}';
s += 'dl.forum_unread dt div a, .topic_unread dt div a, .topic_unread_hot dt div a, .sticky_unread dt div a, .pm_unread dt div a, .pagination li a, .global_unread dt div a, .global_unread_mine dt div a, .announce_unread_mine dt div a, .announce_unread dt div a, .topic_unread_mine dt div a, .topic_unread_locked dt div a, .forum_unread_subforum dt div a {background:none !important;}';
s += '.page-width {max-width: 1900px;}';
s += 'label, dd, dd label, .postprofile strong, .pagination li.ellipsis span {color:#777;}';
s += '.codebox code {color:#090 !important;}';
s += 'dl.row-item dt .list-inner {background: none!important;}';
s += '.post:target h3 a {color: #226798;}';
s += '.panel-container h2 {color: #2a485d;}';
s += '.button {background-image: none !important; background-color:#111;}';
s += '#message-box textarea {background-color:#222; color:#999;}';
s += 'input.button1, input.button2 {background-image: none !important; background-color: #222; color:#eee;}';
if(typeof GM_addStyle!="undefined"){GM_addStyle(s);}
else if(typeof addStyle!="undefined"){addStyle(s);}
else{
var n=document.createElement("style");
n.setAttribute('type', 'text/css');
n.innerHTML = s;
document.getElementsByTagName("head")[0].appendChild(n);
}