//this helps automate DRV closing by adding a 'close' tab to DRV debates when editing sections//written by [[User:Lifebaka]], modified from [[Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js]] written by [[User:Johnleemk]]//to use this code, simply add importScript('User:Lifebaka/closedrv.js'); to your monobook.js page//feel free to copy and change this code as necessary (using your own copy, please); any modifications I have made from the source are public domainfunction autodrv_result(){ var close = prompt("Result of debate?") var f = document.editform, t = f.wpTextbox1; t.value = t.value.split(/==== *\[/).join('{{subst:' + 'drt|1=['); t.value = t.value.split(/\] *====/).join(']|2=' + close + '}}'); if (t.value.length > 0) t.value += '\n'; t.value += "{{subst:" + "drb" + "}}"; f.wpSummary.value += "closing: " + close;}function autodrv_add_drv_tabs(){ // Only add for pages with the right string somewhere in the title if ((document.title.indexOf("Editing Wikipedia:Deletion review/Log/") != -1) && (document.title.indexOf("(section)") != -1)) { mw.util.addPortletLink('p-cactions', 'javascript:autodrv_result()', "close"); }}$(autodrv_add_drv_tabs);
🔥 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