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.
//Purger importScript("User:Manishearth/purger.js");//My imports are at [[User:Manishearth/imports.js]]//workaround for mass rollback script in VectorfunctionrollbackEverythingButton(){varhasRollback=document.getElementsByClassName("span","mw-rollback-link");if(hasRollback[0]&&(document.title.indexOf("User contributions")!=-1)){mw.util.addPortletLink('p-interaction','javascript:rollbackEverything()',"rollback all","ca-rollbackeverything","rollback all edits displayed here");}}$(rollbackEverythingButton);functionrollbackEverything(){if(confirm("Sure you want to mass rollback?")&&confirm("Sure that you are sure?")&&confirm("SURE? Will you ever regret it?")){for(variindocument.links){if(document.links[i].href.indexOf('action=rollback')!=-1){window.open(document.links[i].href);}}}}$(function(){//Keyboard shtctsif(document.getElementById('prefcontrol')){document.getElementById('prefcontrol').accessKey="s"}//prefs save button})//cookie supportfunctioncreateCookie(name,value,days){if(days){vardate=newDate();date.setTime(date.getTime()+(days*24*60*60*1000));varexpires="; expires="+date.toGMTString();}elsevarexpires="";document.cookie=name+"="+value+expires+"; path=/";}functionreadCookie(name){varnameEQ=name+"=";varca=document.cookie.split(';');for(vari=0;i<ca.length;i++){varc=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)returnc.substring(nameEQ.length,c.length);}returnnull;}functioneraseCookie(name){createCookie(name,"",-1);}//wikiEd configuration (I stopped using it, but keeping it in case I want to switch back. I'm happy with beta editbox)wikEdRegExTypoFix=true;varwikEdShowUsingButton=truevarwikEdShowSourceButton=true;