This page is loaded as a part of the switcher gadget, which is enabled by default.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
'use strict';$(function(){$.each(document.querySelectorAll('.switcher-container'),function(i,container){if(i==0){mw.loader.using(['mediawiki.util'],function(){mw.util.addCSS('.switcher-container label input{margin-right:0.5em}')})}varselected,$radio;varswitchers=[]varradioName='switcher-'+i;$.each(container.children,function(j,switcher){varlabel=switcher.querySelector('.switcher-label');if(!label||!label.childNodes.length){return;}switchers.push(switcher);$radio=$('<input>').prop({type:'radio',name:radioName}).on('click',function(){$(selected).hide();$(switcher).show();selected=switcher;});if(!selected){// Mark the first one as selectedselected=switcher;$radio.prop('checked',true);}elseif(label.getAttribute('data-switcher-default')!==null){// Custom default$radio.click();}else{// Hide non-default$(switcher).hide();}$('<label style="display:block"></label>').append($radio,label.childNodes).appendTo(container);$(label).remove();});if(switchers.length>1){$('<label style="display:block">Show all</label>').prepend($('<input>').prop({type:'radio',name:radioName}).on('click',function(){$(switchers).show();selected=switchers;})).appendTo(container);}if(switchers.length===1){$radio.remove();}});});