// This script adjusts the radio buttons in the history page to select the last // viewed revision (instead of the last revision before the current revision)jQuery(document).ready(function($) {function wpDefaultSelect(){ var li_elements = document.getElementsByClassName('after'); for( var i=0; i<li_elements.length; i++) { var li = li_elements[i]; var inp; if( li ) { var liclass = li.getAttribute('class'); // alert(liclass); if( liclass.search(/mw-history-line-updated.* selected after/) >= 0) { li.setAttribute('class', liclass.replace(/selected after/, 'after') ); inp = li.getElementsByTagName('input')[0]; inp.checked = false; } else if( liclass == "selected after") { break; } else if( liclass.search(/mw-history-line-updated.*after/) >= 0 ) { // do nothing } else if( liclass.search(/after$/) >= 0 ) { li.setAttribute('class', liclass.replace(/after$/, 'selected after') ); inp = li.getElementsByTagName('input')[0]; inp.checked = true; break; } } }}mw.loader.using(['mediawiki.util']).done( function() {wpDefaultSelect();});});
🔥 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