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.
// Veropedia scriptimportScript('User:^demon/vero.js');// Script from [[User:Lupin/editcount.js]]document.write('<script type="text/javascript" src="'+'http://en.wikipedia.org/w/index.php?title=User:Lupin/editcount.js'+'&action=raw&ctype=text/javascript&dontcountme=s"></script>');popupEditCounterTool='custom';popupEditCounterUrl='http://en.wikipedia.org/wiki/User:$1?ectarget=$1';// Script from [[User:Lupin/recent2.js]]mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js'+'&action=raw&ctype=text/javascript&dontcountme=s');/* Lupo's tool */functionmakerawlink(name,url){/* Creates a link pointing to "url", displaying "name" */varlink=document.createElement('a');link.setAttribute('href',url);link.appendChild(document.createTextNode(name));returnlink;}functiongetElementsByClassName(class_name){/* Returns an array of all elements having the class "class_name". This simplified version works only for single classes. If the length of the returned array is zero, no such elements were found. */varall_obj;varresult=newArray();varj=0;if(document.all)/* For IE */all_obj=document.all;elseif(document.getElementsByTagName&&!document.all)/* For Mozilla/Firefox */all_obj=document.getElementsByTagName("*");for(i=0;i<all_obj.length;i++){if(all_obj[i].className==class_name){result[j]=all_obj[i];j++;}}returnresult;}functionaddLeadSectionTab(){/* Only add new tab if the page is editable and has section editing links. */if(getElementsByClassName('editsection').length>0){varedit_tab=document.getElementById('ca-edit');if(edit_tab!=null){varhref_for_lead=edit_tab.firstChild.getAttribute('href')+"§ion=0";varfirst_title=getElementsByClassName('firstHeading');if(first_title.length>0){/* We have a "firstHeading": put "[edit]" to its right */varedit_div=document.createElement('div');edit_div.setAttribute('class','editsection');edit_div.setAttribute('style','float:right;margin-left:5px;');edit_div.appendChild(document.createTextNode('['));edit_div.appendChild(makerawlink("edit",href_for_lead));edit_div.appendChild(document.createTextNode(']'));first_title[0].parentNode.insertBefore(edit_div,first_title[0]);}else{/* No first title found: create a tab */varnew_tab=document.createElement('li');new_tab.id='ca-editlead';varlink=makerawlink("Edit lead",href_for_lead);new_tab.appendChild(link);edit_tab.parentNode.appendChild(new_tab);}}}}functionmyCustomizations(){addLeadSectionTab();/* Add future customizations here... */}if(window.addEventListener)window.addEventListener("load",myCustomizations,false);elseif(window.attachEvent)window.attachEvent("onload",myCustomizations)