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

Content deleted Content added
portlet update requested on talk
+nextnode, requested on 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"])' : '#pt-watchlist';
mw.util.addPortletLink('p-personal', '#', label, 'pt-darkmode', tooltip, '', nextnode);
 
function toggleMode() {