User:Svick/DropDownToTabs.js

// changes the drop-down menu in Vector into tabs

function fixTab(item) { var node = item.firstChild; if (node.tagName.toLowerCase != 'span') item.innerHTML = " " + item.innerHTML + " "; }

$(function { document.getElementById('p-cactions').className = 'vectorTabs';  var elems = document.getElementById('p-cactions').getElementsByTagName('li');  for (var i = 0; i < elems.length; i++)    fixTab(elems[i]);  mw.util.addCSS('div#p-cactions {margin-left: 5px;}'); })

window.TwinkleInit = (window.TwinkleInit || []).concat( function { var twinkleElem = document.getElementById('p-twinkle');  if (twinkleElem)    twinkleElem.className = 'vectorTabs';  mw.util.addCSS('div#p-twinkle {margin-left: 5px;}'); });