1,131
edits
(Created page with "→* * Toggles dark mode * * @author Mackan * Adapted from https://oldschool.runescape.wiki/w/MediaWiki:Gadget-skinTogglesNew.js: ;(function($, mw) { const DARKMODE_COOKIE = "darkmode"; let currentDark = localStorage.getItem(DARKMODE_COOKIE) let portletLink let self = { init: () => { portletLink = mw.util.addPortletLink( 'p-personal', '', '', 'pt-skin-toggles', 'Toggle darkmode', null, $('#pt-userpage, #pt-anonuserpag...") |
(No difference)
|