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

Content deleted Content added
'#pt-darkmode span:not(.mw-ui-icon)' ; see talk
portlet update requested on talk
Line 18:
var label = mw.msg('darkmode-turn-' + onOrOff + '-label');
var tooltip = mw.msg('darkmode-turn-' + onOrOff + '-tooltip');
mw.util.addPortletLink(portlet'p-personal', '#', label, 'pt-darkmode', tooltip);
var portlet = mw.config.get('skin') === 'minerva' ? 'pt-preferences' : 'p-cactions';
mw.util.addPortletLink(portlet, '#', label, 'pt-darkmode', tooltip);
 
function toggleMode() {