User:JL 09/vector.js

importScript('User:John254/mass rollback.js'); importScript('User:TheDJ/Gadget-HotCat.js'); importScript('User:Henrik/js/automod.js'); importScript('User:AzaToth/twinkle.js'); importScript('User:Ais523/adminrights.js'); importScript('User:Ais523/votesymbols.js'); importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js'); importScript('User:Jnothman/afd_helper/script.js'); importScript('Wikipedia:WikiProject User scripts/Scripts/Autocopyvio.js'); importScript('User:Ioeth/friendly.js'); importScript('User:TheDJ/Gadget-HotCat.js'); importScript('User:GregU/familytree.js'); importScript('User:Mr.Z-man/closeAFD.js');

function hidevfd{ var divs = document.getElementsByTagName("div"); for(var x = 0; x < divs.length; ++x) if(divs[x].className.indexOf("vfd") != -1) divs[x].style.display = "none"; document.getElementById('footer').style.display = 'none'; }

function showvfd{ var divs = document.getElementsByTagName("div"); for(var x = 0; x < divs.length; ++x) if(divs[x].className.indexOf("vfd") != -1) divs[x].style.display = ""; document.getElementById('footer').style.display = ''; }

function addlilink(tabs, url, name){ var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); li.appendChild(na); tabs.appendChild(li); return li; }

function vfdlinks{ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; if(document.title.indexOf("Wikipedia:Articles for deletion") == 0){ addlilink(tabs, 'javascript:hidevfd', 'Hide'); addlilink(tabs, 'javascript:showvfd', 'Show'); } }

if (window.addEventListener) window.addEventListener("load",vfdlinks,false); else if (window.attachEvent) window.attachEvent("onload",vfdlinks);