// vim: ts=4 sw=4 et ai// <nowiki>( function () { if( mw.config.get( "wgAction" ) === "view" ) { // If someone's already using the "D" access key, clear that mw.loader.using( [ "mediawiki.util" ], function () { var hasOurAccessKey = document.querySelectorAll( "a[accesskey=d]" ); for( var i = 0; i < hasOurAccessKey.length; i++ ) { hasOurAccessKey[i].setAttribute( "accesskey", "" ); $( hasOurAccessKey[i] ).updateTooltipAccessKeys(); } } ); // Wrap every section in its own div var linkMapping = {}; // zone IDs to link elements var editSectionSpans = document.querySelectorAll( "span.mw-editsection" ); if( !editSectionSpans.length ) return; var headerEl, currEl, container; for( var i = 0; i < editSectionSpans.length; i++ ) { headerEl = editSectionSpans[i].parentNode; if( headerEl.matches( "h1.firstHeading" ) ) continue; // Insert container into DOM container = document.createElement( "div" ); container.className = "hover-edit-section"; container.dataset.hoverId = i; headerEl.parentNode.insertBefore( container, headerEl ); // Insert all elements in the section into our container var currEl = headerEl.nextSibling; container.appendChild( headerEl ); var nextEl; while( currEl && ( currEl.nodeType !== 1 || currEl.tagName.toLowerCase().indexOf( "h" ) !== 0 ) ) { nextEl = currEl.nextSibling; container.appendChild( currEl ); currEl = nextEl; } // Register "edit section" link linkMapping[i] = editSectionSpans[i].children[ editSectionSpans[i].children.length - 2 ]; } mw.loader.addStyleTag( "div.hover-edit-section { margin-bottom: -1.6em; padding-bottom: 1.1em }" ); $( "body" ).append( $( "<a>" ) .attr( { href: "#", accesskey: "d" } ) .css( { position: "fixed", opacity: "0" } ) .text( "hover-edit-section" ) .click( function ( e ) { e.preventDefault(); var hoverId = document.querySelector( "div.hover-edit-section:hover" ).dataset.hoverId; linkMapping[ hoverId ].click(); return false; } ) ); }} )();// </nowiki>
🔥 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