FANDOM


ChatThemeSwitcher is a script that allows users to switch between night and day mode.

Installation

Configuration

There are two ways to set up night mode CSS:

  1. Either Add CSS to MediaWiki:Chat.css on your wiki with the body selector .night:
.ChatWindow.night {
    background-color: #2c343d;
}
.ChatWindow.night .username,
.ChatWindow.night .message,
.ChatWindow.night .WikiaPage,
.ChatWindow.night .UserStatsMenu,
.ChatWindow.night .ChatHeader,
.ChatWindow.night .Write [name="message"] {
    background-color: #39424d;
}
.ChatWindow.night .Chat .you {
    background-color: #414954;
}
.ChatWindow.night a {
    color: #00c8e0;
}
.ChatWindow.night .UserStatsMenu .info {
    background-color: #2e5d6a;
}
  1. OR Insert the colors into this JavaScript snippet, replacing '#......' with your color. Add that snippet to MediaWiki:Chat.js.
$.extend(window, {
    backgroundColor: '#2c343d',
    textColor: '#d5d4d4',
    foregroundColor: '#39424d',
    selfTextColor: '#414954',
    linkColor: '#00c8e0',
    userStatsColor: '#2e5d6a',
});
Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+