As my first tweak seems to have been well liked, here's another one from my site.
At least for my site, the #1 most requested feature was a night mode. It wasnt too hard to make, but I found a lot of questions here on the nodeBB community about how to implement one, so I figured some people could benefit from this!
Step 1: CSS
Grab notepad or nodepad++, and your favorite web browser for development. Open up the inspector (ctrl-shift-i on chrome), and carefully tweak your way to a working night mode, copy pasting each CSS rule you make to the txt document, removing any unrelated rules (Keep only things you change!).
Be detailed! Remember dismiss dialogs, search pages, group pages, user settings pages, composers, everything.
Once you have a full night mode CSS, save this file as nightmode.css
Step 2: Putting the CSS file on your server
Use filezilla or similar to throw nightmode.css into nodebb/public
Step 3: JS
Paste the following into your header:
<script>
function nightmode(){
var el = document.getElementById('myStyles');
if ( el !== null ) {
el.parentNode.removeChild(el);
} else {
var oLink = document.createElement("link")
oLink.id = 'myStyles';
oLink.href = "/nightmode.css";
oLink.rel = "stylesheet";
oLink.type = "text/css";
document.body.appendChild(oLink);
}
}
</script>
Save that.
Step 4: Button
Make a button for nightmode, most likely in a HTML widget under extend, but wherever you want.
<button class="nightmodebutton" onclick="nightmode()"><span></span></button>
Works well. Style it as you like with css- your site now has night mode!