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.
functionpurgeUserpage(){newmw.Api().postWithToken("csrf",{action:'edit',title:'User:RainFall',text:'',summary:"Auto purge"});logs.innerHTML="Re-adding content in 5 secs... <br> Clearing userpage...<br>"+logs.innerHTML;setTimeout('continuePurge()',5000);}functioncontinuePurge(){newmw.Api().postWithToken("csrf",{action:'edit',title:'User:RainFall',text:'{{Statustop}}\n{{/StatusPage}}\n{{/Userpage}}',summary:"Auto purge"});logs.innerHTML="Content added.<br>"+logs.innerHTML;}addOnloadHook(function(){mw.util.addPortletLink("p-cactions","javascript:showit()","Show stuffs");});functionclearSandbox(){value="{{Please leave this line alone (sandbox heading)}}<!--\n* Welcome to the sandbox! *\n* Please leave this part alone *\n* The page is cleared regularly *\n* Feel free to try your editing skills below *\n■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-->";newmw.Api().postWithToken("csrf",{action:'edit',title:'Wikipedia:Sandbox',text:value,summary:"Clearing the sandbox ([[WP:US|UserScript]])"});logs.innerHTML="Sandbox cleared!<br>"+logs.innerHTML;}functioneditpagea(){varradios="none";if(NameA.value==""){alert("Empty article name!\n Stoping...");}else{////////////////////////////////////////BLAH BLAH////////////////////////////vartr=document.getElementById("1c");if(tr.checked){radios="one";}vartr2=document.getElementById("2c");if(tr2.checked){radios="two";}////////////////////////////////////////BLAH BLAH////////////////////////////if(radios=="none"){alert("No option selected!\n Stoping...");}else{if(confirm('Sure to edit/create "'+NameA.value+'" with '+Values.value+'?')){if(radios=="one"){newmw.Api().postWithToken("csrf",{action:'edit',title:NameA.value,text:Values.value,summary:"Edited - (using a UserScript)"});mw.notify('ScriptEditor - Completed');logs.innerHTML="Edited "+NameA.value+"...<br>"+logs.innerHTML;}else{alert('working on it!');}}}}}functionUpdateNew(whatnew){status(whatnew);logs.innerHTML="Status updated - "+whatnew+"<br>"+logs.innerHTML;}if(location.href=="https://en.wikipedia.org/wiki/User:RainFall/Sandbox/New"){if(wgUserName=="RainFall"){plus="<fieldset><legend>Edit</legend><center><font color=red>Caution!<br>You take full responsibility for your actions done from here!</font></center>";plus=plus+"Article name - <input id=NameA><br>Text - <input id=Values><input type=radio name=act id=1c><label for=1c>Replace All</label><input type=radio name=act id=2c><lable for=2c>Add at last</lable>";plus=plus+"<br><input type=submit value=Edit onclick=javascript:editpagea()>";plus=plus+"</fieldset>";Texts.innerHTML="Welcome RainFall!<br><fieldset><legend>Status</legend><input id=nwstatus><input type=submit value=Update onclick=javascript:UpdateNew(nwstatus.value)></fieldset><fieldset><legend>Other</legend><input type=submit value='Clear sandbox' onclick=javscript:clearSandbox()><input type=submit value='Purge Userpage' onclick=javscript:purgeUserpage()></fieldset>"+plus+"<fieldset><legend>Logs</legend><h6><span id=logs></h6>";}}