Jump to content

User:MusikAnimal/nightpedia

From Wikipedia, the free encyclopedia
User script
nightpedia.js
DescriptionDark mode for WMF wikis
Author(s)MusikAnimal with some CSS from AHollender (WMF)
StatusStable
UpdatedDecember 7, 2018
    (6 years ago)
BrowsersAny modern browser
SkinsAll
SourceUser:MusikAnimal/nightpedia.js

A cheap dark mode for WMF wikis.

Usage

[edit]

Look for the "Nightpedia" link in your top toolbar between the "Beta" and the "Watchlist" links. This will toggle the dark mode. Your preference for night mode will be remembered as you browser to other pages. However, because this is only a user script, the styling only gets applied after the page has fully loaded, so there will be brief period where you will see the normal daytime mode.

Installation

[edit]

To use Nightpedia on all Wikimedia projects add the following to meta:Special:MyPage/global.js:

mw.loader.load('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/nightpedia.js');

Or, to use it only on English Wikipedia, add the following to Special:MyPage/common.js:

{{subst:lusc|User:MusikAnimal/nightpedia}}