MediaWiki:Gadget-dark-mode-toggle.js: Difference between revisions

Content deleted Content added
+nextnode, requested on talk
nextnode tweak from talk
Line 18:
var label = mw.msg('darkmode-turn-' + onOrOff + '-label');
var tooltip = mw.msg('darkmode-turn-' + onOrOff + '-tooltip');
var nextnode = mw.config.get('skin') === 'minerva' ? 'li:has([data-event-name="menu.unStar"])'null : '#pt-watchlist';
mw.util.addPortletLink('p-personal', '#', label, 'pt-darkmode', tooltip, '', nextnode);