User:Abdullah5599@legacy41961806/vector.js

importScript('User:Abdullah/SidebarFunctions.js');

// // SearchBar // Removes the searchbar at the top and places it on the left, like monobook // function SearchBar { //-Remove search bar at top var del = document.getElementById('p-search'); del.parentNode.removeChild(del);

//-Indent top-right tabs so the dropdown button works nicely document.getElementById('right-navigation').style.margin = "2.5em 3em 0 0";

//-Create a search bar under the navigation thing on the left var newdiv = document.createElement('div'); var olddiv = document.getElementById('p-Navigation') newdiv.setAttribute('id','search');

newdiv.innerHTML = '\  \  \ \             \  \ \      ';

document.getElementById("mw-panel").insertBefore(newdiv, olddiv.nextSibling); }

addOnloadHook(SearchBar);

// // Personal thingies // function load { var newdiv = document.createElement('div'); var olddiv = document.getElementById('p-tb') if (skin=='monobook') {     newdiv.setAttribute('class','portlet'); newdiv.innerHTML = 'More functions'; document.getElementById("column-one").insertBefore(newdiv, olddiv.nextSibling) } if (skin=='vector') {     newdiv.setAttribute('class','portal collapsed'); newdiv.innerHTML = 'More functions'; document.getElementById("mw-panel").insertBefore(newdiv, olddiv.nextSibling) } }

addOnloadHook(load);

function sidebarmore { NewSidebar("custom1", "New", "toolbox"); AddLink("custom1", "My Sandbox", "/User:" + encodeURIComponent(wgUserName) + "/Sandbox"); AddLink("custom1", "New pages", "/Special:Newestpages"); AddLink("custom1", "File List", "/Special:ListFilesWithImages", "");

NewSidebar("custom2", "Attention needed", "custom1"); AddLink("custom2", "Pages needing attention", "/Category:Articles_needing_attention", ""); AddLink("custom2", "Wanted Pages", "/Special:WantedPages", ""); AddLink("custom2", "Broken Redirects", "/Special:BrokenRedirects", ""); AddLink("custom2", "Double Redirects", "/Special:DoubleRedirects", ""); AddLink("custom2", "Unused Files", "/Special:UnusedImages", ""); AddLink("custom2", "Unused Files (2)", "/User:Adam/Unused_files"); AddLink("custom2", "Delete Images", "/Category:Images_for_deletion"); AddLink("custom2", "Delete Articles", "/Category:Articles_for_deletion");

NewSidebar("custom3", "Uncategorized", "custom2"); AddLink("custom3", "Pages", "/Special:UncategorizedPages", ""); AddLink("custom3", "Files", "/Special:UncategorizedFiles", ""); AddLink("custom3", "Templates", "/Special:UncategorizedTemplates", ""); AddLink("custom3", "Categories", "/Special:UncategorizedCategories", ""); }