Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page.
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.
//This script does not function without additional "helper" modules!//Please see [[Wikipedia:AutoEd]] for details on use.//Initiates AutoEdfunctionautoEdExecute7(){if(!document.getElementById('wpTextbox1'))return;// copy wikEd ([[User:Cacycle/wikEd.js]]) frame to wpTextbox1 textarea// for compatibility with WikiEdif(typeofwikEdUseWikEd!=='undefined'){if(wikEdUseWikEd===true){WikEdUpdateTextarea();}}//alert/return if autoEdFunctions is not definedif(typeofautoEdFunctions7==='undefined'){alert('AutoEd/core.js: autoEdFunctions is undefined');return;}autoEdFunctions7();autoEdEditSummary7();// copy wpTextbox1 textarea back to wikEd frame// for compatibility with WikiEdif(typeofwikEdUseWikEd!=='undefined'){if(wikEdUseWikEd===true){WikEdUpdateFrame();}}}//Adds Tag to edit summary textboxfunctionautoEdEditSummary7(){vartxt7=document.forms.editform.wpSummary;vartag7;if(typeofautoEdTag7==='undefined'){tag7='Cleaned up using [[WP:AutoEd|AutoEd]]';}else{tag7=autoEdTag7;}// Is the tag blank?if(tag7.match(/[^\s]/)){// Has it already been tagged?if(txt7.value.indexOf(tag7)==-1){// Append a pipe if necessaryif(txt7.value.match(/[^\*\/\s][^\/\s]?\s*$/)){txt7.value+=' | ';}// Append our tagtxt7.value+=tag7;}}// Check 'This is a minor edit'if(typeofautoEdMinor7==='undefined'||autoEdMinor7){document.forms.editform.wpMinoredit.checked=true;}// Uncheck 'Watch this page'if(typeofautoEdWatch7==='undefined'||autoEdWatch7){document.forms.editform.wpWatchthis.checked=false;}// Click 'Show changes'if(typeofautoEdClick7==='undefined'||autoEdClick7){document.forms.editform.wpDiff.click();}}// Add "auto ed" tab and associate with actions// Make sure the document is ready and our dependencies are loaded$.when($.ready,mw.loader.using(['mediawiki.util'])).done(function(){var$link7;//Execute AutoEd after call from "view mode"if(mw.util.getParamValue('AutoEd7')){autoEdExecute7();}// Set default values for any unset variablesif(typeofautoEdLinkHover7==='undefined'){autoEdLinkHover7="Run AutoEd";}if(typeofautoEdLinkName7==='undefined'){autoEdLinkName7="auto ed";}if(typeofautoEdLinkLocation7==='undefined'){autoEdLinkLocation7="p-cactions";}// Add the "auto ed" tabif(document.getElementById('ca-edit')){varurl=mw.util.getUrl(mw.config.get('wgPageName'),{action:'edit',AutoEd7:'true'});$link7=$(mw.util.addPortletLink(autoEdLinkLocation7,url,autoEdLinkName7,'ca-AutoEd',autoEdLinkHover7,'',document.getElementById('ca-move')));if(typeofdocument.forms.editform!=='undefined'){$link7.on('click',function(e){e.preventDefault();autoEdExecute7();});}}});