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.
importScript('User:Tholly/Status.js');//TEST//function addSumLink() {//var page = url.match(/[?&]title=([^&]*)/;//}functionshortcutsInit(){shortcutsAddLink('Uncategorized Pages','Special:UncategorizedPages');shortcutsAddLink('Prefix Index','Special:PrefixIndex');shortcutsAddLink('Admin Noticeboard','WP:AN');shortcutsAddLink('Category Tree','Special:CategoryTree/Project');}importScript('User:AzaToth/twinkle.js');importScript('User:Ioeth/friendly.js');importScript('User:Lupin/recent2.js');//// **The script below is an adaption of one from [[User:Gracenotes/rollback.js]]**// **Please read that page for more details on the script.**//// The Differences:// -Instead of just being able to: $user --> username// -Now there is: $user --> [[User:username|username]] - (linked)// -And also: $talk --> [[User talk:username|username's talk page]] - (also linked)//// -Another change is that there is already text in the summary box, defaulting to: "Reverted edits by $user ($talk)."// -Finally, the link to click on next to rollback is "summary", not "sum".//functionaddSumLink(){varntitle2=document.getElementById("mw-diff-ntitle2")if(!ntitle2)return;varrbnode=getElementsByClassName(document.getElementById("mw-diff-ntitle2"),"span","mw-rollback-link");if(rbnode.length!=0)addRollbackSummaryLink(rbnode[0]);}functionconfirmRollback(){varurl=this.href;varuser=url.match(/[?&]from=([^&]*)/);if(!user)return;varuser=decodeURIComponent(user[1].replace("+"," "));varsummary=prompt("Enter a summary to use for rollback. Leave blank to use the default.\n\n'$user' will be replaced with the link to "+user+"'s userpage and '$talk' to their talk page.","Reverted edits by $user ($talk).")if(summary==undefined)returnfalse;elseif(summary=="")returntrue;varfinsum=summary.replace(/\$user/g,"[[User:"+user+"|"+user+"]]");this.href+="&summary="+encodeURIComponent(finsum.replace(/\$talk/g,"[[User talk:"+user+"|"+user+"'s talk page]]"));returntrue;};functionaddRollbackSummaryLink(rbnode){varrblink=rbnode.getElementsByTagName("a")[0]varalink=rblink.cloneNode(true);alink.className="";alink.firstChild.nodeValue="summary";alink.onclick=confirmRollback;rbnode.insertBefore(alink,rblink.nextSibling);rbnode.insertBefore(document.createTextNode("|"),alink);}addOnloadHook(addSumLink);//Again, from User:Gracenotes//utility function: box() gets edit textarea value, box(text) sets itfunctionbox(text){if(text){document.getElementById("wpTextbox1").value=text;}else{returndocument.getElementById("wpTextbox1").value;}}//Again, from User:Gracenotes//add (cur) link on contribution pagesif(wgPageName=='Special:Contributions'&&(((lim=document.location.href.match(/[&?]limit=([^&]*)/))&&parseInt(lim[1])<250)||!lim)){addOnloadHook(function(){varcontribs=document.getElementById('bodyContent').getElementsByTagName('li');varmainNode;varaNode;varlinks;for(vari=0,leng=contribs.length;i<leng;i++){links=contribs[i].getElementsByTagName('a');mainNode=document.createElement('span');mainNode.appendChild(document.createTextNode('('));aNode=document.createElement('a');aNode.href=links[1].href.replace('prev','cur');aNode.appendChild(document.createTextNode('cur'));mainNode.appendChild(aNode);mainNode.appendChild(document.createTextNode(') '));contribs[i].insertBefore(mainNode,links[2]);}});}//This scipt is very usefull, as it adds voting symbols based on what the person has written in bold as their title.//It makes the page easier to look at with the coloured symbols.//Again, from User:Gracenotes//following script based off of [[User:Ais523/votesymbols.js]]; mostly string functions modifiedfunctionlowerNoPunct(s){returns.toLowerCase().replace(/\.|,|:|;|\+/g,'');}addOnloadHook(function(){if(wgNamespaceNumber==0||wgPageName=="Wikipedia:Requests_for_adminship")return;//RFA is often rather long; may also add wgPageName.indexOf("Wikipedia:Articles_for_deletion/Log/") == 0varvt=["http://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/15px-Symbol_support_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/15px-Symbol_keep_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/15px-Symbol_oppose_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_delete_vote.svg/15px-Symbol_delete_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_neutral_vote.svg/15px-Symbol_neutral_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Symbol_merge_vote.svg/15px-Symbol_merge_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Symbol_move_vote.svg/15px-Symbol_move_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Symbol_redirect_vote.svg/15px-Symbol_redirect_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Symbol_opinion_vote.svg/15px-Symbol_opinion_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/15px-Symbol_comment_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/f/f6/Symbol_unsupport_vote.svg/15px-Symbol_unsupport_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_question.svg/15px-Symbol_question.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Symbol_divide_vote.svg/15px-Symbol_divide_vote.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Symbol_wait.svg/15px-Symbol_wait.svg.png","http://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-grin.svg/15px-Face-grin.svg.png"];varla=[];la['support']=0;la['endorse']=0;la['keep']=1;la['oppose']=2;la['overturn']=2;la['object']=2;la['delete']=3;la['neutral']=4;la['merge']=5;la['upmerge']=5;la['move']=6;la['rename']=6;la['userfy']=6;la['transwiki']=6;la['redirect']=7;la['opinion']=8;la['relist']=8;la['subst']=8;la['salt']=8;la['change']=8;// Note that icon 8 on the list is often used for debate-specific !votesla['comment']=9;la['comments']=9;la['update']=9;la['note']=9;la['notes']=9;la['delist']=10;la['question']=11;la['split']=12;la['wait']=13;la['bjaodn']=14;varbtc=document.body.getElementsByTagName("b");i=btc.length;while(i--){varj,k;j=btc[i].innerHTML.replace(/<|>|\//g," ").split(" ");k=0;varx="";while(k<j.length){if(lowerNoPunct(j[k])=="don't"||lowerNoPunct(j[k])=='not'||lowerNoPunct(j[k])=='no'||lowerNoPunct(j[k])=='without')break;varl=la[lowerNoPunct(j[k])];if(l!=undefined){x+="<img src='"+vt[l]+"' alt='*' /> ";}k++;}if(x!="")btc[i].innerHTML=x+btc[i].innerHTML;}});