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.
functionLoadScript(title){mw.loader.load('/w/index.php?title='+mw.util.wikiUrlencode(title)+'&action=raw&ctype=text/javascript');}LoadScript('User:Dr pda/prosesizebytes.js');// Adds "Page size" to Toolbox sectionLoadScript('User:Shubinator/DYKcheck.js');// Adds link to check DYK eligibilityLoadScript('User:קיפודנחש/viewstats.js');// Adds link for page viewsLoadScript('User:Anomie/unwatch.js');// Adds unwatch links to watchlistLoadScript('User:Enterprisey/watchlist-notice.js');// Notifies me when my watchlist updatesLoadScript('User:Anomie/linkclassifier.js');// Colors redirects, dabs, etc. differently than regular linksLoadScript('User:Theopolisme/Scripts/adminhighlighter.js');// Highlights users if they are adminsLoadScript('User:Equazcion/CatListMainTalkLinks.js');// Add links to talk pages in categoriesLoadScript('User:Anomie/useridentifier.js');// Adds info to user pagesLoadScript('User:Dudemanfellabra/diffs.js');// Adds time between diffsLoadScript('User:Writ Keeper/Scripts/commonHistory.js');// Show inline diffs instead of loading separate pageLoadScript('User:Ais523/bracketmatch.js');// Checks template syntax while editingLoadScript('User:Kephir/gadgets/cksyntax.js');// Check syntax of JavaScript before savingvarloadTime=newDate();functionCustomMain(){if(mw.config.get('wgPageName')=="Main_Page"){window.location.replace('http://en.wikipedia.org/wiki/Wikipedia:Main_Page_alternative_(CSS_Update)');//My custom main page}}functionLoadTime(){varmySpan=document.createElement('div');mySpan.setAttribute('style','float:right; font-size:11px; color:#555; margin-top:3px;')mySpan.setAttribute('id','loadtime')varul=document.getElementById('pt-logout').parentNode.parentNode;vardate='0'+loadTime.getUTCDate();date=date.substr(date.length-2,date.length);varmonth='0'+loadTime.getUTCMonth()+1;month=month.substr(month.length-2,month.length);varyear=loadTime.getUTCFullYear();varhours='0'+loadTime.getUTCHours();hours=hours.substr(hours.length-2,hours.length);varminutes='0'+loadTime.getUTCMinutes();minutes=minutes.substr(minutes.length-2,minutes.length);vartimestring="Page loaded at "+year+"-"+month+"-"+date+", "+hours+":"+minutes+" (UTC)";datePlace=ul.appendChild(mySpan);datePlace.innerHTML=timestring;TimeSinceLoad();}functionTimeSinceLoad(){// Adds time since load as tooltipvarcurrentTime=newDate();vardiff=DateSub(loadTime,currentTime);// inside User:Dudemanfellabra/diffs.jsdocument.getElementById('loadtime').title=diff+' ago';vart=setTimeout("TimeSinceLoad()",60000);}functionReflinks(){mw.util.addPortletLink("p-tb","//toolserver.org/~dispenser/cgi-bin/webreflinks.py/"+mw.config.get('wgPageName')+"?client=script&citeweb=on&overwrite=&limit=20&lang="+mw.config.get('wgContentLanguage'),"Reflinks")}functionEditCount(){document.getElementById("pt-userpage").innerHTML+=" ("+mw.config.get('wgUserEditCount')+" edits)"}varWatchListHiddenUsers=["Hmains","Ser_Amantio_di_Nicolao"]functionWatchlistHideUsers(){if(mw.config.get('wgPageName')!="Special:Watchlist")return;if(Object.prototype.toString.call(WatchListHiddenUsers)!=='[object Array]')return;varedits=document.getElementsByClassName("mw-userlink")if(edits==null)return;varhiddenCount=0for(vari=0;i<WatchListHiddenUsers.length;i++){for(varj=0;j<edits.length;j++){if(edits[j].href.search(WatchListHiddenUsers[i])!=-1){if(edits[j].parentNode.parentNode.style.display!="none"){edits[j].parentNode.parentNode.style.display="none"hiddenCount++}else{edits[j].parentNode.parentNode.style.display=""}}}}vartitle=document.getElementById("firstHeading")if(hiddenCount>0){title.innerHTML+=" <small>("+hiddenCount+" edits hidden; <a onclick='WatchlistHideUsers()'>Show them</a>)</small>"}else{title.innerHTML=title.innerHTML.replace(/ <small>.*?<\/small>/g,"")}}$(window).load(LoadTime);// Adds UTC clock to top right of page$(window).load(CustomMain);// My custom Main Page$(window).load(Reflinks);// Add [[WP:Reflinks]] to toolbox$(window).load(EditCount);// Show edit count by username in toolbar$(window).load(WatchlistHideUsers);// Hide certain users edits on watchlistLoadScript('User:Dudemanfellabra/NRHPstats.js');// Tally up stats on individual NRHP county listsLoadScript('User:Dudemanfellabra/UpdateNRHPProgress.js');// Script to automatically update WP:NRHPPROGRESSLoadScript('User:Dudemanfellabra/NRHPmap.js');// Generate copy-paste code for SVG mapLoadScript('User:Dudemanfellabra/NRHPProgressHistory.js');// Extracts data about historical progress from WP:NRHPPROGRESSLoadScript('User:Dudemanfellabra/NRISOnly.js');// Script for bot tagging NRIS-only articlesLoadScript('User:Dudemanfellabra/ReorderNRHPlist.js');// Automate re-ordering of NRHP county lists after addition/deletionLoadScript('User:Dudemanfellabra/AssessNRHP.js');// Semi-automates assessment of NRHP articlesLoadScript('User:Dudemanfellabra/AddCommonsCatLinks.js');// Check for and add links to commons categories on NRHP listsLoadScript('User:Dudemanfellabra/Sandbox.js');// Sandbox for testing code