332
editsAd placeholder
User:MetalManeMc/vector.js: Difference between revisions
Jump to navigation
Jump to search
no edit summary
MetalManeMc (talk | contribs) (Created page with "→* * Toggle for dark mode testing * * @author [[User:Jayden]] for https://minecraft.wiki * @author [[User:MetalManeMc]] for adaptation on Baldur's Gate 3 Wiki * @see Based on https://runescape.wiki/w/MediaWiki:Gadget-skinTogglesNew.js: ;(function($, mw){ var DARK_COOKIE = 'darkmode', THEME_COOKIE = 'theme', isUsingDarkmode = $.cookie(THEME_COOKIE) === 'dark' || ($.cookie(THEME_COOKIE) == null && $.cookie(DARK_COOKIE) === 'true'), portletLink; var self...") |
MetalManeMc (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
;(function($, mw){ | ;(function($, mw){ | ||
var DARK_COOKIE = 'darkmode', | var DARK_COOKIE = 'darkmode', | ||
THEME_COOKIE = ' | THEME_COOKIE = 'test_theme', | ||
isUsingDarkmode = $.cookie(THEME_COOKIE) === 'dark' || ($.cookie(THEME_COOKIE) == null && $.cookie(DARK_COOKIE) === 'true'), | isUsingDarkmode = $.cookie(THEME_COOKIE) === 'dark' || ($.cookie(THEME_COOKIE) == null && $.cookie(DARK_COOKIE) === 'true'), | ||
portletLink; | portletLink; |