/* * Add a tab to toggle section editing links. *//* sm8ps * 20220905: show links * 20220906: toggle links */if ( mw.config.get('wgNamespaceNumber') >= 0 ) { mw.loader.using( 'mediawiki.util', function () { $( function ( $ ) { var link = mw.util.addPortletLink( 'p-cactions', '#', 'Section editing', 'Section editing' ); $( link ).click( function ( e ) { e.preventDefault(); mw.loader.using( [ 'mediawiki.api', 'oojs-ui' ], function () { launch(); } ); } ); function launch( apicontinue ) { /* get display style and toggle value */ var element = document.querySelector( '.mw-editsection' ) ; var style = getComputedStyle( element ) ; var display = style.display ; var styles ; if( display == 'none' ) { styles = '.mw-editsection { display:inline!important; }'; } else { styles = '.mw-editsection { display:none!important; }'; } /* add tab */ var head = document.getElementsByTagName('HEAD')[0]; var css = document.createElement('style'); css.type = 'text/css'; if (css.styleSheet) css.styleSheet.cssText = styles; else css.appendChild(document.createTextNode(styles)); head.appendChild(css); } } ); } );}
🔥 Top keywords: Main PageSpecial:SearchPage 3Wikipedia:Featured picturesHouse of the DragonUEFA Euro 2024Bryson DeChambeauJuneteenthInside Out 2Eid al-AdhaCleopatraDeaths in 2024Merrily We Roll Along (musical)Jonathan GroffJude Bellingham.xxx77th Tony AwardsBridgertonGary PlauchéKylian MbappéDaniel RadcliffeUEFA European Championship2024 ICC Men's T20 World CupUnit 731The Boys (TV series)Rory McIlroyN'Golo KantéUEFA Euro 2020YouTubeRomelu LukakuOpinion polling for the 2024 United Kingdom general electionThe Boys season 4Romania national football teamNicola CoughlanStereophonic (play)Gene WilderErin DarkeAntoine GriezmannProject 2025