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.
//<pre><nowiki>// Filter changes live// [[User:Lupin/recent2.js]] - please include this linedocument.write('<script type="text/javascript" src="'+'http://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js'+'&action=raw&ctype=text/javascript&dontcountme=s"></script>');//</nowiki></pre>//<pre><nowiki>// [[User:Lupin/popups.js]] - please include this line document.write('<script type="text/javascript" src="'+'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'+'&action=raw&ctype=text/javascript&dontcountme=s"></script>');popupInitialWidth=300;simplePopups=true;popupRevertSummaryPrompt=true;popupStructure='menus';// </nowiki></pre>//<pre><nowiki>//If you are not editing a page, a tab will appear allowing you to edit the 0th section of a page (the top area usually used as an introduction.functionaddEditSection0(){ta['ca-edit-0']=['','Edit the zeroth section of this page'];if(!document.getElementById)return;x=document.getElementById('ca-edit');if(!x)return;y=document.createElement('LI');y.id='ca-edit-0';if(x.className=='selected'){if(/&action=edit§ion=0$/.test(window.location.href)){x.className='istalk';y.className='selected';}else{x.className='selected istalk';}}elseif(x.className=='selected istalk'){if(/&action=edit§ion=0$/.test(window.location.href)){x.className='istalk';y.className='selected istalk';}else{y.className='istalk';}}else{y.className=x.className;x.className='istalk';}z=document.createElement('A');if(x.children){z.href=x.children[0].href+'§ion=0';z.appendChild(document.createTextNode('0'));y.appendChild(z);document.getElementById('p-cactions').children[1].insertBefore(y,x.nextSibling);}else{z.href=x.childNodes[0].href+'§ion=0';z.appendChild(document.createTextNode('0'));y.appendChild(z);document.getElementById('p-cactions').childNodes[3].insertBefore(y,x.nextSibling);}}if(document.title.indexOf("Editing ")==-1){addOnloadHook(addEditSection0);}// </nowiki></pre>// (Helper for Purge)// <pre><nowiki>functionaddLink(where,url,name,id,title,key,after){//* where is the id of the toolbar where the button should be added;// i.e. one of "p-cactions", "p-personal", or "p-navigation".//* url is the URL which will be called when the button is clicked.// javascript: urls can be used to do more complex things.//* name is what will appear as the name of the button.//* id is the id of the button; it's best to define one. // Use a prefix to make sure its unique. Optional.//* title is the tooltip title that gives a longer description // of the button; if you define a accesskey, mention it here. Optional.//* key is the char you want for the accesskey. Optional.//* after is the id of the button you want to follow this one. Optional.varna=document.createElement('a');na.href=url;na.appendChild(document.createTextNode(name));varli=document.createElement('li');if(id)li.id=id;li.appendChild(na);vartabs=document.getElementById(where).getElementsByTagName('ul')[0];if(after){tabs.insertBefore(li,document.getElementById(after));}else{tabs.appendChild(li);}if(id){if(key&&title){ta[id]=[key,title];}elseif(key){ta[id]=[key,''];}elseif(title){ta[id]=['',title];}}// re-render the title and accesskeys from existing code in wikibits.jsakeytt();returnli;}// </nowiki></pre>// <pre><nowiki>// addPurgeaddOnloadHook(function(){varx=document.getElementById('ca-history');if(!x)return;if(x.children)x=x.children[0].href;elsex=x.childNodes[0].href;addLink("p-cactions",x.replace(/=history/,"=purge"),'purge','ca-purge','Purge the internal cache for this page',0);});// </nowiki></pre>//<pre><nowiki>// Add date and time to your monobook "personal menu" list at the very top of the page.// Created by [[User:Mathwiz2020]]// Indicate where you would like the time to appear:// 1 is first (before username), 2 is second (before talk link), ... 7 is last (after log out link)insertBeforeNum=7;// Do NOT edit below this line unless you're experiened in javascriptinsertBeforeArr=newArray("","pt-userpage","pt-mytalk","pt-preferences","pt-watchlist","pt-mycontris","pt-logout","");insertBefore=insertBeforeArr[insertBeforeNum];functionmakeTime(){varli=document.createElement('li');li.id='pt-time';varmySpan=document.createElement('span');mySpan.appendChild(document.createTextNode('date and time'));li.appendChild(mySpan);if(insertBefore){varbefore=document.getElementById(insertBefore);before.appendChild(li,before);}else// append to end (right) of list{document.getElementById('pt-logout').parentNode.appendChild(li);}getTime();}if(window.addEventListener)window.addEventListener('load',makeTime,false);elseif(window.attachEvent)window.attachEvent('onload',makeTime);functiongetTime(){vartime=newDate();vardate=time.getUTCDate();varmonths='Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split(' ');month=months[time.getUTCMonth()];varyear=time.getUTCFullYear();varhours='0'+time.getUTCHours();hours=hours.substr(hours.length-2,hours.length);varminutes='0'+time.getUTCMinutes();minutes=minutes.substr(minutes.length-2,minutes.length);varseconds='0'+time.getUTCSeconds();seconds=seconds.substr(seconds.length-2,seconds.length);varcurTime=hours+":"+minutes+":"+seconds+", "+date+" "+month+" "+year+" (UTC)";datePlace=document.getElementById('pt-time').childNodes[0].childNodes[0];datePlace.replaceData(0,datePlace.length,curTime);doTime=window.setTimeout("getTime()",1000);}//</nowiki></pre>//Create 'winc' function:functionwinc(s){document.write('<script type="text/javascript" src="'+'http://en.wikipedia.org/w/index.php?title='+s+'&action=raw&ctype=text/javascript&dontcountme=s"></script>');}//function to handle dates:winc('User:Bobblewik/monobook.js/dates.js');//function to handle units:winc('User:Bobblewik/monobook.js/unitformatter.js');